公众号前端
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

29 rader
602 B

  1. module.exports = {
  2. publicPath: "./",
  3. devServer: {
  4. // 后端请求转发,此配置仅开发环境有效,生产环境请参考生产环境部署文档配置nginx转发
  5. proxy: {
  6. '/wx': {
  7. target: 'http://localhost:8088/'
  8. }
  9. },
  10. port:8001,
  11. inline:false //实时编译
  12. },
  13. configureWebpack:{
  14. devServer: {
  15. disableHostCheck: true
  16. }
  17. },
  18. chainWebpack: config => {
  19. // 移除 prefetch 插件
  20. config.plugins.delete('prefetch')
  21. },
  22. outputDir: undefined,
  23. assetsDir: undefined,
  24. runtimeCompiler: undefined,
  25. productionSourceMap: false,
  26. parallel: undefined,
  27. css: undefined
  28. }