您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

vue.config.js 493 B

2 年前
1234567891011121314151617181920212223
  1. /**
  2. * 配置参考: https://cli.vuejs.org/zh/config/
  3. */
  4. module.exports = {
  5. publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
  6. chainWebpack: config => {
  7. const svgRule = config.module.rule('svg')
  8. svgRule.uses.clear()
  9. svgRule
  10. .test(/\.svg$/)
  11. .use('svg-sprite-loader')
  12. .loader('svg-sprite-loader')
  13. },
  14. productionSourceMap: false,
  15. devServer: {
  16. open: true,
  17. port: 8001,
  18. overlay: {
  19. errors: true,
  20. warnings: true
  21. }
  22. }
  23. }