jay-remove-webpack-plugin

1.0.1 • Public • Published

jay-remove-webpack-plugin

如何使用

const RemoveWebpackPlugin = require('jay-remove-webpack-plugin');

new RemoveWebpackPlugin({
    filterPath: /^\/css\/.*\.js?$/ig
})

filterPath 为正则表达式

该插件解决了,当入口文件为less,或sass时,会额外产生js文件的问题

效果: webpack生成文件时,将会不会生成符合filterPath的文件

Package Sidebar

Install

npm i jay-remove-webpack-plugin

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

1.46 kB

Total Files

3

Last publish

Collaborators

  • tianshengjie