[ new HtmlWebpackPlugin({ template: "./public/index-template.html", // filter to a single compiled globalize language // change 'en' to language of choice or remove inject all languages // NOTE: last language will be set language chunks: [ "vendors", "main" ], chunksSortMode: function ( c1, c2 ) { var orderedChunks = [ "vendors", "main" ]; var o1 = orderedChunks.indexOf( subLocaleNames( c1.names[ 0 ])); var o2 = orderedChunks.indexOf( subLocaleNames( c2.names[ 0 ])); return o1 - o2; }, }), dgwPluginInstance, new CopyWebpackPlugin( dgwPluginInstance.getLocalizeDataCopyPatterns() ) //, new ManifestPlugin({writeToFileEmit: true}) ].concat( production ? [ // removed from webpack 4 // new webpack.optimize.UglifyJsPlugin({ // compress: { // warnings: false // } // }) ] : [] )
name: 'vendors', chunks (chunk) { return chunk.name !== 'polyfills';
name: 'vendors', chunks (chunk) { return chunk.name !== 'polyfills';