VUE

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 就能正常运行了

posted @ 2018-11-15 15:52  小小小小小前端  阅读(105)  评论(0编辑  收藏  举报