remove-source-webpack-plugin:Webpack插件,用于删除不需要的源
删除源webpack插件Webpack插件,用于删除不需要的源。可以与以删除内联源。安装您可以通过或安装它。 $ yarn add remove-source-webpack-plugin --dev $ npm install remove-source-webpack-plugin --save-dev用法在您的webpack配置中需要插件: const RemoveSourceWebpackPlugin = require('remove-source-webpack-plugin');将该插件添加到您的webpack配置中,如下所示: plugins: [ new RemoveSourceWebpackPlugin(/runtime.*.js$/) // array is also accepted ]演示版执照
3.24KB
文件大小:
评论区