vue.config.js 563 B

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