vue-cube-contextmenu
Version:
ContextMenu in Vue with accessibility support
36 lines (35 loc) • 938 B
JavaScript
/**
* @file dev配置
*/
var path = require('path');
var webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const {merge} = require('webpack-merge');
const webpackBaseConfig = require('./webpack.base.config.js');
module.exports = merge(webpackBaseConfig, {
entry: './examples/index.js',
output: {
path: path.resolve(__dirname, './dist'),
filename: '[name].js'
},
plugins: [
new HtmlWebpackPlugin({
template: 'index.html',
filename: 'index.html'
}),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"production"'
}
}),
new webpack.optimize.UglifyJsPlugin({
sourceMap: true,
compress: {
warnings: false
}
}),
new webpack.LoaderOptionsPlugin({
minimize: true
})
]
});