Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

1 Commit

Repository files navigation

Empty module plugin for webpack

Usage

Replaces the module of the request that matches resourceRegExp with an empty module. If the second argument source is specified, it will be used as the source of the new module. If the source is a function, it will be called with the request and the result will be used as the source of the module.

newEmptyModulePlugin(resourceRegExp)newEmptyModulePlugin(resourceRegExp,'/* was replaced with empty module */')newEmptyModulePlugin(resourceRegExp,(request)=>'/* '+request+' was ignored */')

License

MIT (http://www.opensource.org/licenses/mit-license.php)

About

webpack plugin

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages