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

Package Sidebar

Install

npm i context-empty-loader

Weekly Downloads

4

Version

0.1.2

License

MIT

Last publish

Collaborators

  • doasync