1
0
mirror of synced 2025-12-15 03:08:01 +08:00
Files
eruda/script/webpack.release.js
2018-08-20 16:45:35 +08:00

23 lines
427 B
JavaScript

const webpack = require('webpack')
exports = require('./webpack.base')
exports.output.filename = 'eruda.min.js'
exports.devtool = false
exports.plugins = exports.plugins.concat([
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
},
output: {
ascii_only: true
},
comments: /eruda v/
}),
new webpack.DefinePlugin({
ENV: '"production"'
})
])
module.exports = exports