Skip to content
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

Typo. webpack-advanced-setup-tutorial #179

Closed
ephraimduncan opened this issue Jul 14, 2020 · 1 comment
Closed

Typo. webpack-advanced-setup-tutorial #179

ephraimduncan opened this issue Jul 14, 2020 · 1 comment

Comments

@ephraimduncan
Copy link

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.

@rwieruch
Copy link
Owner

The index.html is in the src/ folder.

Jul-14-2020 10-00-29

On npm run build, the index.html is copied into the dist/ folder.

On every npm run buildthe dist/ folder gets removed.

That's the whole flow :)

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

2 participants