vue-html-webpack-plugin

Simplifies creation of HTML files to serve your webpack bundles
9,469
Install
npm install vue-html-webpack-plugin
Latest Version:3.2.2
License:MIT
Last Updated:Jun 12, 2018
Links: npm
Maintainer: bro.kolosov

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.

Related Packages

duplicate-dependencies-webpack-plugin

webpack plugin to find duplicated dependencies from your bundle

332,104 6
@nuxt/friendly-errors-webpack-plugin

Recognizes certain classes of webpack errors and cleans, aggregates and prioriti...

15,832,314 29
vue-ssr-webpack-plugin

webpack plugin for generating a bundle manifest to use with Vue 2.x bundleRender...

100,967
@mastergo/html-mastergo

Convert HTML to Mastergo code

1,204 60
webpack-plugin-pages

这是webpack+vue配置多页打包插件

604

Version History

Version Released License
3.2.2 MIT
3.2.1 MIT
3.2.0 MIT