chore: check es5
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const BundleAnalyzerPlugin =
|
||||
require('webpack-bundle-analyzer').BundleAnalyzerPlugin
|
||||
|
||||
exports = require('./webpack.release')
|
||||
exports = require('./webpack.prod')
|
||||
|
||||
exports.plugins.push(new BundleAnalyzerPlugin())
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ module.exports = {
|
||||
static: {
|
||||
directory: path.join(__dirname, '../test'),
|
||||
},
|
||||
port: 3000,
|
||||
port: 8080,
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, '../dist'),
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const webpack = require('webpack')
|
||||
const TerserPlugin = require('terser-webpack-plugin')
|
||||
|
||||
exports = require('./webpack.base')
|
||||
|
||||
@@ -10,5 +11,13 @@ exports.plugins = exports.plugins.concat([
|
||||
ENV: '"production"',
|
||||
}),
|
||||
])
|
||||
exports.optimization = {
|
||||
minimize: true,
|
||||
minimizer: [
|
||||
new TerserPlugin({
|
||||
extractComments: false,
|
||||
}),
|
||||
],
|
||||
}
|
||||
|
||||
module.exports = exports
|
||||
Reference in New Issue
Block a user