WebStorm - 在每次提交前删除 console.log
WebStorm - remove console.log before every commit
如何配置 WebStorm IDE 以在每次提交时自动检查和清理所有 console.log
中的代码?
IDE 中没有此选项,但您可以使用 Web 上可用的包并将它们包含在构建过程中或 运行 作为预提交挂钩。参见 babel-plugin-transform-remove-console, uglifyjs-webpack-plugin
如何配置 WebStorm IDE 以在每次提交时自动检查和清理所有 console.log
中的代码?
IDE 中没有此选项,但您可以使用 Web 上可用的包并将它们包含在构建过程中或 运行 作为预提交挂钩。参见 babel-plugin-transform-remove-console, uglifyjs-webpack-plugin