From de5626109b3953f63e690fa9cc8a8cb6760ab0fd Mon Sep 17 00:00:00 2001 From: Gregory Date: Tue, 20 Feb 2018 12:32:15 -0500 Subject: [PATCH] fix prod conf --- build/webpack.prod.conf.js | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js index 8fac3a8..ae56755 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -16,7 +16,7 @@ var webpackConfig = merge(baseWebpackConfig, { extract: true }) }, - entry: [path.resolve('src/index.js')], + entry: [path.resolve('src/editor/index.js')], devtool: false, output: { path: config.build.assetsRoot, @@ -51,23 +51,6 @@ var webpackConfig = merge(baseWebpackConfig, { ] }) -if (config.build.productionGzip) { - var CompressionWebpackPlugin = require('compression-webpack-plugin') - - webpackConfig.plugins.push( - new CompressionWebpackPlugin({ - asset: '[path].gz[query]', - algorithm: 'gzip', - test: new RegExp( - '\\.(' + - config.build.productionGzipExtensions.join('|') + - ')$' - ), - threshold: 10240, - minRatio: 0.8 - }) - ) -} if (config.build.bundleAnalyzerReport) { var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin