vue.config.js 630 B

123456789101112131415161718192021222324252627282930
  1. module.exports = {
  2. assetsDir: process.env.VUE_APP_STATIC_URL,
  3. publicPath: process.env.NODE_ENV === 'production' ? '' : '',
  4. productionSourceMap: false,
  5. // webpack 配置
  6. configureWebpack: {
  7. devtool: false,
  8. },
  9. pluginOptions: {
  10. 'style-resources-loader': {
  11. preProcessor: 'scss',
  12. patterns: []
  13. }
  14. },
  15. outputDir: 'dist',
  16. devServer: {
  17. inline: false,
  18. hot: false,
  19. liveReload: false,
  20. // 设置代理proxy
  21. proxy: {
  22. '/back': {
  23. // target: 'http://vr-admin.cdfmembers.com/',
  24. target: 'https://zhongmian.4dage.com',
  25. changeOrigin: true
  26. }
  27. }
  28. }
  29. }