23 lines
427 B
JavaScript
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
|