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

23
build/webpack.prod.js Normal file
View File

@@ -0,0 +1,23 @@
const webpack = require('webpack')
const TerserPlugin = require('terser-webpack-plugin')
exports = require('./webpack.base')
exports.mode = 'production'
exports.output.filename = 'eruda.js'
exports.devtool = 'source-map'
exports.plugins = exports.plugins.concat([
new webpack.DefinePlugin({
ENV: '"production"',
}),
])
exports.optimization = {
minimize: true,
minimizer: [
new TerserPlugin({
extractComments: false,
}),
],
}
module.exports = exports