cleanup-loader
Prevent webpack from emitting unwanted .js/.js.map files from certain files
Installation
$ npm i --save-dev cleanup-loader
Usage
moduleexports = module : rules: // Useage with text-extract plugin test: /\.scss$/ use: ExctractSass // Useage with image optimization test: /\.$/ use: // ... after all your image loaders loader: 'cleanup-loader' options: test: /\.$/
Options
Parameter | Type | Description |
---|---|---|
test | regex |
generated .js/.js.map files from tested files are prevented from emitting |
License
MIT
Credits
@iantsch - web developer behind this and other projects.