VUE vue——解決“You may use special comments to disable some warnings. Use // eslint-disable-next-line to ignore the next line. Use /* eslint-disable */ t
阿新 • • 發佈:2018-11-15
vue——解決“You may use special comments to disable some warnings. Use // eslint-disable-next-line to ignore the next line. Use /* eslint-disable */ to ignore all warnings in a file. ”
在build/webpack.base.conf.js檔案中,註釋或者刪除掉:module->rules中有關eslint的規則
module: { rules: [ //...(config.dev.useEslint ? [createLintingRule()] : []), // 註釋或者刪除 { test: /\.vue$/, loader: 'vue-loader', options: vueLoaderConfig }, ... } ] }
然後 nmp run dev 就能正常運行了
在build/webpack.base.conf.js檔案中,註釋或者刪除掉:module->rules中有關eslint的規則
module: { rules: [ //...(config.dev.useEslint ? [createLintingRule()] : []), // 註釋或者刪除 { test: /\.vue$/, loader: 'vue-loader', options: vueLoaderConfig }, ... } ] }
然後 nmp run dev 就能正常運行了