Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

vue-html-webpack-plugin

brokolosov443MIT3.2.2

Simplifies creation of HTML files to serve your webpack bundles

vue, vuejs, webpack, plugin, html, html-webpack-plugin, vue-html-webpack-plugin

readme

This is a webpack plugin powered by HTML Webpack Plugin, and add just one boolean param to the options.

install

  npm i --save-dev vue-html-webpack-plugin

webpack.config.js

const HtmlWebpackPlugin = require('vue-html-webpack-plugin')

module.exports = {
  plugins: [
    new HtmlWebpackPlugin({
      vue: true
    })
  ]
}

This will generate a file dist/index.html containing the following

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Webpack App</title>
  </head>
  <body>
    <div id="app"></div>
    <script src="index_bundle.js"></script>
  </body>
</html>

This param add entry point for Vue.js app.