[Vuejs]-Using html-webpack-plugin to generate an index.html file in Webpack (project using vue-simple boilerplate)

0👍

You can alternatively use vue-cli for scaffolding. (Read the vue documentation for vue-cli here https://vuejs.org/2015/12/28/vue-cli/)

The following will give you a full preconfigured webpack config :

vue init webpack project-name

Then you can use npm run build OR yarn build which will generate your index.html in the “dist” folder.

Leave a comment