mirror of
https://github.com/liriliri/eruda.git
synced 2026-02-02 09:49:00 +08:00
chore: check es5
This commit is contained in:
23
build/webpack.prod.js
Normal file
23
build/webpack.prod.js
Normal 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
|
||||
Reference in New Issue
Block a user