1
0
mirror of synced 2025-12-09 15:24:28 +08:00

chore: check es5

This commit is contained in:
redhoodsu
2022-07-01 18:43:59 +08:00
parent 1fa9cd0fbb
commit 5823e12aa1
6 changed files with 38 additions and 22 deletions

View File

@@ -1,7 +1,7 @@
const BundleAnalyzerPlugin =
require('webpack-bundle-analyzer').BundleAnalyzerPlugin
exports = require('./webpack.release')
exports = require('./webpack.prod')
exports.plugins.push(new BundleAnalyzerPlugin())

View File

@@ -39,7 +39,7 @@ module.exports = {
static: {
directory: path.join(__dirname, '../test'),
},
port: 3000,
port: 8080,
},
output: {
path: path.resolve(__dirname, '../dist'),

View File

@@ -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