context-empty-loader
v0.1.2
Published
Webpack loader that returns an empty module for specific folders
Downloads
7
Maintainers
Readme
This loader can exclude/skip/empty modules by context/folder/path they were requested from
Installation
npm install --save-dev context-empty-loader
Usage
Webpack rule:
// Skips all polyfills from specified paths
{
test: `${paths.modules}/core-js/`,
use: {
loader: 'context-empty-loader',
options: {
context: [
`${paths.modules}/some-module/es/path/`,
`${paths.modules}/another-module/`
]
}
},
},
Testing function is startsWith()