mirror of
https://github.com/kevin-DL/vue-audio-recorder.git
synced 2026-01-22 23:35:27 +00:00
Update package.json & webpack
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
const path = require('path')
|
||||
const webpack = require('webpack')
|
||||
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
|
||||
|
||||
module.exports = {
|
||||
devtool: '#source-map',
|
||||
entry: './src/index.js',
|
||||
entry: {
|
||||
main: './src/index.js'
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
filename: 'vue-audio-recorder.min.js',
|
||||
@@ -12,18 +14,21 @@ module.exports = {
|
||||
libraryExport: 'default',
|
||||
umdNamedDefine: true
|
||||
},
|
||||
optimization: {
|
||||
minimizer: [
|
||||
new UglifyJsPlugin({
|
||||
cache: true,
|
||||
parallel: true,
|
||||
sourceMap: true
|
||||
})
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({
|
||||
'process.env': {
|
||||
NODE_ENV: '"production"'
|
||||
}
|
||||
}),
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
sourceMap: true,
|
||||
compress: {
|
||||
warnings: true
|
||||
}
|
||||
}),
|
||||
new webpack.LoaderOptionsPlugin({
|
||||
minimize: false
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user