防错插件
通过 npm install --save-dev bug-protect-plugin 安装防错插件,在 webpack-config.js 中引入,使用 const BugProtectPlugin = require('bug-protect-plugin'); const path = require('path'); module.exports = { entry: './index.js', output: { path: path.resolve(__dirname, 'dist'), filename: 'webpack.bundle.js' }, plugins: [ new BugProtectPlugin() ] };
1.9KB
文件大小:
评论区