vue-simple-progress
Version:
A simple, flexible progress bar for Vue.js
38 lines (29 loc) • 786 B
JavaScript
const merge = require('deep-assign')
const webpack = require('webpack')
const options = require('./options')
const base = require('./webpack.base.js')
const config = merge(base, {
entry: options.paths.resolve('examples-src/index.js'),
output: {
filename: 'examples.bundle.js',
path: options.paths.output.examples
},
plugins: [
new webpack.LoaderOptionsPlugin({
minimize: true
}),
// Set the production environment
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production'),
VERSION: JSON.stringify(options.version)
}),
// Minify with dead-code elimination
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
})
]
})
module.exports = config