You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
672 B

const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin'); // 最新版本copy-webpack-plugin插件暂不兼容,推荐v5.0.0
const publicPath = process.env.VUE_APP_PUBLIC_PATH;
module.exports = {
lintOnSave: process.env.NODE_ENV !== 'production',
productionSourceMap: false,
publicPath: process.env.NODE_ENV === 'production' ? publicPath : '/',
devServer: {
// open: true,
// host: '127.0.0.1',
overlay: { warnings: false, errors: true },
// proxy: {}
},
configureWebpack: { plugins: [] },
// , disable: true
pluginOptions: {
// mock: { entry: './src/mock/mock.js', debug: true, disable: true },
},
};