瑜璟缘官网
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.
 
 
 

28 lines
620 B

  1. const path = require('path');
  2. function resolve(dir) {
  3. return path.join(__dirname, dir);
  4. }
  5. module.exports = {
  6. devServer: {
  7. overlay: {
  8. warnings: false,
  9. errors: false
  10. },
  11. /* proxy: {
  12. '/api': {
  13. target: 'http://plat.yjyculture.com/C/',
  14. changeOrigin: true,
  15. pathRewrite: {
  16. '^/api': ''
  17. }
  18. },
  19. } */
  20. },
  21. lintOnSave: false,
  22. chainWebpack: (config) => {
  23. config.resolve.alias
  24. .set('@', resolve('src'))
  25. }
  26. }