码迷,mamicode.com
首页 > 其他好文 > 详细

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. ”

时间:2018-08-28 20:10:20      阅读:8327      评论:0      收藏:0      [点我收藏+]

标签:create   ack   span   line   next   test   webp   pre   ons   

在build/webpack.base.conf.js文件中,注释或者删除掉:module->rules中有关eslint的规则

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

然后 nmp run dev 就能正常运行了

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. ”

标签:create   ack   span   line   next   test   webp   pre   ons   

原文地址:https://www.cnblogs.com/gaoquanquan/p/9550169.html

(1)
(3)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!