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

2 years ago
  1. const IS_PROD = [ 'production', 'prod' ].includes(process.env.NODE_ENV);
  2. module.exports = {
  3. publicPath: './',
  4. indexPath: 'index.html',
  5. outputDir: process.env.outputDir || 'dist',
  6. assetsDir: 'static',
  7. lintOnSave: false,
  8. runtimeCompiler: true,
  9. productionSourceMap: !IS_PROD,
  10. parallel: require('os').cpus().length > 1,
  11. pwa: {},
  12. configureWebpack: {
  13. plugins: []
  14. },
  15. devServer: {
  16. port: 8900, // 端口
  17. },
  18. }