UNPKG

522 BJavaScriptView Raw
1const HtmlPlugin = require('html-webpack-plugin');
2const template = require('html-webpack-template');
3const merge = require('deepmerge');
4
5module.exports = ({ config }, options = {}) => config
6 .plugin('html')
7 .use(HtmlPlugin, [
8 merge({
9 template,
10 inject: false,
11 appMountId: 'root',
12 xhtml: true,
13 mobile: true,
14 minify: {
15 useShortDoctype: true,
16 keepClosingSlash: true,
17 collapseWhitespace: true,
18 preserveLineBreaks: true
19 }
20 }, options)
21 ]);