使用babel-plugin-transform-remove-console插件在Vue运行 npm run build 打包时移除console
1
npm install babel-plugin-transform-remove-console --save-dev
123456789101112
module.exports = { presets: [ "@vue/cli-plugin-babel/preset" ], env: { development: { }, production: { plugins: ["transform-remove-console"] } }};
上一篇:git如何批量删除本地和远程分支
下一篇:php 跨域共享session (仅二级域名)