You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like for some reason this plugin gets a wrong path in compiler.options. In the following case instead of ./dist I just get /. It seems to just use webpack's API so I suspect it's webpack issue.
With old versions of webpack-dev-server, it forced output.path to /. This has been fixed with webpack/webpack-dev-server#337, so I'm pretty sure this is no longer an issue.
From @frantic on October 28, 2015 19:34
x-post from gajus/write-file-webpack-plugin#1:
Seems like for some reason this plugin gets a wrong path in
compiler.options
. In the following case instead of./dist
I just get/
. It seems to just use webpack's API so I suspect it's webpack issue.My config:
but the plugin creates a file in my root -
/bundle.js
. I've added some logging. The config exported fromwebpack.config.js
looks like this:however inside plugin's
apply
when Iconsole.log(compiler.options);
I get:(note different
output.path
in both cases)webpack v1.12.2
cc @gajus
Copied from original issue: webpack/webpack#1563
The text was updated successfully, but these errors were encountered: