vue.config.js 610 B

1234567891011121314151617181920212223242526
  1. module.exports = {
  2. publicPath: process.env.NODE_ENV === `production` ? `/vueDataV/` : `/`,
  3. productionSourceMap: false,
  4. lintOnSave: false,
  5. devServer: {
  6. port: 8081,
  7. // proxy: {
  8. // "/api": {
  9. // target: "https://api.github.com",
  10. // changeOrigin: true,
  11. // ws: false,
  12. // pathRewrite: {
  13. // "^/api": ""
  14. // }
  15. // }
  16. // }
  17. },
  18. configureWebpack: {
  19. // 把原本需要写在webpack.config.js中的配置代码 写在这里 会自动合并
  20. externals: {
  21. jquery: `$`,
  22. echarts: `echarts`,
  23. axios: `axios`,
  24. },
  25. },
  26. }