vue.config.js 636 B

12345678910111213141516171819202122232425262728
  1. const path = require('path')
  2. const myTheme = path.resolve(__dirname, "./src/assets/vantChange.less")
  3. module.exports = {
  4. productionSourceMap: false,
  5. publicPath: './',
  6. devServer: {
  7. open: true, //设置自动打开
  8. proxy: {
  9. '/': {
  10. target: 'http://183.66.101.90:8083',
  11. // target: 'http://183.66.101.58:8083',
  12. changeOrigin: true,
  13. ws: true
  14. },
  15. }
  16. },
  17. chainWebpack: config => {
  18. config.optimization
  19. .minimizer('terser')
  20. .tap(args => {
  21. Object.assign(args[0].terserOptions.compress, {
  22. pure_funcs: ['console.log']
  23. })
  24. return args
  25. })
  26. }
  27. }