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" |