vueJS 解决VSCode 中 报错"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."

 在bulid > webpack.base.conf.js 中,注释或删除掉: module -> rules 关于eslint的部分

 module: {
    rules: [
      // ...(config.dev.useEslint ? [createLintingRule()] : []),   //注释或删除
      {
        test: /\.vue$/,
        loader: 'vue-loader',
        options: vueLoaderConfig
      },
  ]
}

然后 npm run dev 就能启动了

posted @ 2019-05-08 17:03  Toyocc  Views(1465)  Comments(0Edit  收藏  举报