1.0.1 • Published 7 years ago

jay-remove-webpack-plugin v1.0.1

Weekly downloads
5
License
ISC
Repository
github
Last release
7 years ago

jay-remove-webpack-plugin

如何使用

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

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

filterPath 为正则表达式

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

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