1
0
mirror of synced 2025-11-06 04:21:11 +08:00
Files
eruda/build/webpack.prod.js
2022-07-01 18:43:59 +08:00

24 lines
481 B
JavaScript

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