vue——解決「You may use special comments to disable some warnings. Use // eslint-disable-next-line to ig

在build/webpack.base.conf.js文件中,註釋或者刪除掉:module->rules中有關eslint的規則vue

複製代碼
module: {
  rules: [
    //...(config.dev.useEslint ? [createLintingRule()] : []), // 註釋或者刪除
    {
      test: /\.vue$/,
      loader: 'vue-loader',
      options: vueLoaderConfig
    },
    ...
    }
  ]
}
複製代碼

而後 nmp run dev 就能正常運行了webpack

相關文章
相關標籤/搜索