vue.config.js忽略运行时错误
时间: 2023-08-08 08:13:15 浏览: 159
在vue.config.js中忽略运行时错误,可以通过配置lintOnSave属性来实现。根据引用\[3\]中的内容,可以将lintOnSave的值设置为process.env.NODE_ENV !== 'production',这将禁用ESLint检测。这样,在开发过程中就可以忽略运行时错误。
#### 引用[.reference_title]
- *1* *2* [vue.config.js的详解](https://blog.csdn.net/Litt_White/article/details/128725823)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [vue.config.js关闭ESLINT检测](https://blog.csdn.net/qq_41177135/article/details/130825854)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文