Skip to content

Commit

Permalink
fix prod conf
Browse files Browse the repository at this point in the history
  • Loading branch information
chmln committed Feb 20, 2018
1 parent 8fe54ee commit de56261
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions build/webpack.prod.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit de56261

Please sign in to comment.