Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: webpack_runner.js

Issue 29589555: Issue 5915 - adblockpluschrome won't build under Windows (Closed)
Patch Set: Created Oct. 26, 2017, 9:03 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webpack_runner.js
===================================================================
--- a/webpack_runner.js
+++ b/webpack_runner.js
@@ -56,7 +56,7 @@
},
entry: entry_points,
output: {
- path: "/",
+ path: path.resolve(""),
Oleksandr 2017/10/26 09:08:42 This means "current working directory".
filename: bundle_name
},
resolve: {
@@ -138,7 +138,7 @@
for (let config of options)
{
let filepath = path.join(config.output.path, config.output.filename);
- let relativeFilepath = path.relative("/", filepath);
+ let relativeFilepath = path.relative("", config.output.filename);
files[relativeFilepath] = memoryFS.readFileSync(filepath, "utf-8");
files[relativeFilepath + ".map"] = memoryFS.readFileSync(
filepath + ".map", "utf-8"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld