Skip to content

output path is wrong when using webpack-dev-server #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bennettrogers opened this issue Aug 18, 2016 · 2 comments
Closed

output path is wrong when using webpack-dev-server #3

bennettrogers opened this issue Aug 18, 2016 · 2 comments

Comments

@bennettrogers
Copy link

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).

@anvk
Copy link

anvk commented Feb 11, 2017

It would help so many people if this issue is resolved.

@CaptEmulation
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants