vue3-h5-template/build/webpack.prod.conf.js
2020-05-22 15:38:04 +08:00

24 lines
582 B
JavaScript

const merge = require('webpack-merge');
const {CleanWebpackPlugin} = require('clean-webpack-plugin');
const path = require('path');
const baseConfig = require('./webpack.base.conf');
module.exports = merge(baseConfig, {
mode: 'production',
devtool: 'source-map',
module: {
rules: []
},
plugins: [
// new CleanWebpackPlugin(['dist/'], {
// root: path.resolve(__dirname, '../'),
// verbose: true,
// dry: false
// }),
new CleanWebpackPlugin({
root: path.resolve(__dirname, '../'),
verbose: true,
dry: false
})
]
});