mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
chore: update dependencies
This commit is contained in:
@@ -42,7 +42,7 @@ module.exports = {
|
||||
libraryTarget: 'umd'
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
rules: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
exclude: /node_modules|index\.js/,
|
||||
@@ -96,10 +96,6 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
test: /\.json$/,
|
||||
loader: 'json-loader'
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -2,6 +2,7 @@ const webpack = require('webpack')
|
||||
|
||||
exports = require('./webpack.base')
|
||||
|
||||
exports.mode = 'development'
|
||||
exports.output.filename = 'eruda.js'
|
||||
exports.devtool = 'source-map'
|
||||
exports.plugins = exports.plugins.concat([
|
||||
|
||||
@@ -2,19 +2,10 @@ const webpack = require('webpack')
|
||||
|
||||
exports = require('./webpack.base')
|
||||
|
||||
exports.mode = 'production'
|
||||
exports.output.filename = 'eruda.js'
|
||||
exports.devtool = 'source-map'
|
||||
exports.plugins = exports.plugins.concat([
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
sourceMap: true,
|
||||
compress: {
|
||||
warnings: false
|
||||
},
|
||||
output: {
|
||||
ascii_only: true
|
||||
},
|
||||
comments: /eruda v/
|
||||
}),
|
||||
new webpack.DefinePlugin({
|
||||
ENV: '"production"'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user