vue/build/webpack.build.prod.config.js
2015-09-03 15:16:57 -04:00

24 lines
406 B
JavaScript

var webpack = require('webpack')
module.exports = {
entry: './src/vue',
output: {
path: './dist',
filename: 'vue.min.js',
library: 'Vue',
libraryTarget: 'umd'
},
plugins: [
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"production"'
}
}),
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
})
]
}