context-empty-loader

0.1.2 • Public • Published

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()

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    2
  • 0.1.1
    2

Package Sidebar

Install

npm i context-empty-loader

Weekly Downloads

4

Version

0.1.2

License

MIT

Last publish

Collaborators

  • doasync