vue3-h5-template/build/webpack.prod.conf.js
2020-05-22 17:51:02 +08:00

28 lines
564 B
JavaScript

const merge = require("webpack-merge");
const path = require("path");
const baseConfig = require("./webpack.base.conf");
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
module.exports = merge(baseConfig, {
mode: "production",
devtool: "source-map",
module: {
rules: [ // 自己拓展着玩呀
// {
// test: /\.css$/,
// use: [
// 'css-loader',
// 'postcss-loader',
// ]
// },
],
},
plugins: [
new CleanWebpackPlugin({
root: path.resolve(__dirname, "../"),
verbose: true,
dry: false,
}),
],
});