influxdb版
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.
 
 
 
 

31 regels
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. }