From f452ea0d2606a49587429e053f41784c891b03f1 Mon Sep 17 00:00:00 2001 From: orangemug Date: Tue, 7 Nov 2017 11:35:46 +0000 Subject: [PATCH] Fixed webpack production conf after updated deps. See --- config/webpack.production.config.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/config/webpack.production.config.js b/config/webpack.production.config.js index f4576da..3108b2e 100644 --- a/config/webpack.production.config.js +++ b/config/webpack.production.config.js @@ -43,9 +43,13 @@ module.exports = { chunkFilename: '[chunkhash].js' }, resolve: { - extensions: ['', '.js', '.jsx'] + extensions: ['.js', '.jsx'] }, module: { + noParse: [ + /mapbox-gl\/dist\/mapbox-gl.js/, + /openlayers\/dist\/ol.js/ + ], loaders }, node: { @@ -55,7 +59,7 @@ module.exports = { }, plugins: [ new webpack.NoErrorsPlugin(), - new webpack.optimize.CommonsChunkPlugin('vendor', '[chunkhash].vendor.js'), + new webpack.optimize.CommonsChunkPlugin({ name: 'vendor', filename: '[chunkhash].vendor.js' }), new WebpackCleanupPlugin(), new webpack.DefinePlugin({ 'process.env': { @@ -68,7 +72,6 @@ module.exports = { screw_ie8: true, } }), - new webpack.optimize.OccurenceOrderPlugin(), new ExtractTextPlugin('[contenthash].css', { allChunks: true }),