1 | const HtmlPlugin = require('html-webpack-plugin');
|
2 | const template = require('html-webpack-template');
|
3 | const merge = require('deepmerge');
|
4 |
|
5 | module.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 | ]);
|