vue-loading
Version:
Vue directive for show loading block in anything
27 lines (26 loc) • 680 B
JavaScript
var path = require('path')
var config = require('./base');
var webpack = require('webpack')
module.exports = Object.assign({}, config, {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, '../dist'),
filename: 'vue-loading.js',
library: ['vue-loading'],
libraryTarget: 'umd'
},
devtool: '#source-map',
plugins: [
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"production"'
}
}),
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
}),
new webpack.optimize.OccurenceOrderPlugin()
]
});