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
const HtmlWebpackPlugin = require('html-webpack-plugin') module.exports = { ... plugins: [ new HtmlWebpackPlugin({ title: 'Hello Webpack bundled JavaScript Project', template: './src/index.html' }) ], ... };
Isn't the template supposed to be template: './dist/index.html' because our html file is in the dist folder.
template: './dist/index.html'
dist
The text was updated successfully, but these errors were encountered:
The index.html is in the src/ folder.
On npm run build, the index.html is copied into the dist/ folder.
npm run build
On every npm run buildthe dist/ folder gets removed.
That's the whole flow :)
Sorry, something went wrong.
No branches or pull requests
Isn't the template supposed to be
template: './dist/index.html'
because our html file is in thedist
folder.The text was updated successfully, but these errors were encountered: