vue關閉eslint


vue.config.js

module.exports = {
    devServer: {
      port: 8080,                                                                                  // 端口號
      host: "localhost",
      https: false,                                                                          // https:{type:Boolean}
      open: true,                                                                           //配置自動啟動瀏覽器
      // proxy: 'http://localhost:4000'                                          // 配置跨域處理,只有一個代理
      proxy: {
        "/api": {
          target: "<url>",                                                              //接口地址
          ws: true,                                                                       //是否代理websockets
          changeOrigin: true                                                            // 設置同源  默認false,是否需要改變原始主機頭為目標URL
        },
        "/foo": {
          target: "<other_url>"
        }
      },
      overlay: { warnings: false, errors: false },                                                                                // 配置多個代理
      
    },
    lintOnSave: false,
                                                         // 關閉eslint代碼檢查
  };

  

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM