0.1.2 • Published 6 years ago

context-empty-loader v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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

0.1.2

6 years ago

0.1.1

6 years ago