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

31 行
694 B

  1. /**
  2. * 配置参考: https://cli.vuejs.org/zh/config/
  3. */
  4. const path = require('path')
  5. function resolve(dir) {
  6. return path.join(__dirname, dir)
  7. }
  8. module.exports = {
  9. publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
  10. chainWebpack: (config) => {
  11. config.module.rule('svg').exclude.add(resolve('src/icons')).end()
  12. config.module
  13. .rule('icons')
  14. .test(/\.svg$/)
  15. .include.add(resolve('src/icons'))
  16. .end()
  17. .use('svg-sprite-loader')
  18. .loader('svg-sprite-loader')
  19. },
  20. productionSourceMap: false,
  21. devServer: {
  22. open: true,
  23. port: 8001,
  24. overlay: {
  25. errors: true,
  26. warnings: true
  27. }
  28. }
  29. }