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.
 
 
 

19 lines
435 B

const IS_PROD = [ 'production', 'prod' ].includes(process.env.NODE_ENV);
module.exports = {
publicPath: './',
indexPath: 'index.html',
outputDir: process.env.outputDir || 'dist',
assetsDir: 'static',
lintOnSave: false,
runtimeCompiler: true,
productionSourceMap: !IS_PROD,
parallel: require('os').cpus().length > 1,
pwa: {},
configureWebpack: {
plugins: []
},
devServer: {
port: 8900, // 端口
},
}