| | |
| | | output: {
|
| | | path: config.build.assetsRoot,
|
| | | filename: utils.assetsPath('js/[name].[chunkhash].js'),
|
| | | chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
|
| | | chunkFilename: utils.assetsPath('js/[id].[chunkhash].js'),
|
| | | publicPath: './'
|
| | | },
|
| | | plugins: [
|
| | | // http://vuejs.github.io/vue-loader/en/workflow/production.html
|
| | |
| | | filename: config.build.index,
|
| | | template: 'index.html',
|
| | | inject: true,
|
| | | favicon: resolve('favicon.ico'),
|
| | | // favicon: resolve('favicon.ico'),
|
| | | title: 'mdc-portal',
|
| | | chunks: ['manifest', 'vendor', 'app'],
|
| | | minify: {
|
| | | removeComments: true,
|
| | | collapseWhitespace: true,
|
| | | removeAttributeQuotes: true
|
| | | // more options:
|
| | | // https://github.com/kangax/html-minifier#options-quick-reference
|
| | | },
|
| | | // necessary to consistently work with multiple chunks via CommonsChunkPlugin
|
| | | chunksSortMode: 'dependency'
|
| | | }),
|
| | | new HtmlWebpackPlugin({
|
| | | filename: config.build.test,
|
| | | template: 'index.html',
|
| | | inject: true,
|
| | | // favicon: resolve('favicon.ico'),
|
| | | title: 'mdc-portal',
|
| | | chunks: ['manifest', 'vendor', 'test'],
|
| | | minify: {
|
| | | removeComments: true,
|
| | | collapseWhitespace: true,
|