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
Just a heads up that due to what appears to be a bug in webpack, the output path used by this plugin is incorrect when using the CLI for the webpack-dev-server. It doesn't seem to be fixed as of webpack v2.1.0-beta.21.
The gist is that when using the dev-server, webpack overwrites the output.path specified in the config and sets it to "/". This means that this plugin tries to write its output html to a path based at the filesystem root (which will likely fail with a permission error).
This problem doesn't happen when using the webpack-dev-server via its API (rather than the CLI).
The text was updated successfully, but these errors were encountered:
@anvk you can now pass in an outputPath option to the HtmlWebpackHardiskPlugin constructor to output to a specific location. See #6. Available with version 0.1.0 and above.
Just a heads up that due to what appears to be a bug in webpack, the output path used by this plugin is incorrect when using the CLI for the webpack-dev-server. It doesn't seem to be fixed as of webpack v2.1.0-beta.21.
The gist is that when using the dev-server, webpack overwrites the output.path specified in the config and sets it to
"/"
. This means that this plugin tries to write its output html to a path based at the filesystem root (which will likely fail with a permission error).This problem doesn't happen when using the webpack-dev-server via its API (rather than the CLI).
The text was updated successfully, but these errors were encountered: