We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, I need this plugin, but when I use it in webpack 2, the generated script tag is of the form:
<script type="text/javascript" src="static/js/bundle.js"></script>
instead of:
<script type="text/javascript" src="/static/js/bundle.js"></script>
Note: with the same plugin options, it works as expected in Webpack 1.
Here are the relevant parts of webpack conf:
entry: [ paths.appIndexJs, publicPath, ], output: { pathinfo: true, path: paths.appBuild, filename: 'static/js/bundle.js', }, // (...) plugins: [ new HtmlWebpackPlugin({ inject: true, template: paths.appHtml, }),
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
I added output.publicPath = '/' and it was OK, I think it would be nice to have this in the examples and/or doc...
Sorry, something went wrong.
so why i have to set output.publicPath: '/' ?
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
Hello, I need this plugin, but when I use it in webpack 2, the generated script tag is of the form:
instead of:
Note: with the same plugin options, it works as expected in Webpack 1.
Here are the relevant parts of webpack conf:
What am I doing wrong?
The text was updated successfully, but these errors were encountered: