1.1.1 • Published 5 years ago

webpack-eliminate-loader v1.1.1

Weekly downloads
81
License
MIT
Repository
github
Last release
5 years ago

webpack-eliminate-loader

speed up build

npm GitHub

Limits

only speed-up webpack in development mode build up.

Useage

see more examples

npm install webpack-eliminate-loader --save-dev

In webpack, put after at the bottom.

// ... other loaders
{
  loader: 'webpack-eliminate-loader',
  options: {
    exclude: ['src/pages/Home'],
    preset: ['react-route'],
  },
},

In webpack-chain, put after at the bottom.

// ... other loaders
const tsUse = config.module.rules.get('ts');
tsUse
  .use('webpack-eliminate-loader')
  .loader('webpack-eliminate-loader')
  .options({
    presets: ['umi-route', 'umi-rematch'],
    include: ['src/pages/page-one'],
  })
  .after('ts-loader');

Options

OptionsUsageDefault
presetsthe way of how this loader work. Currently, only support umi-route, react-route, umi-rematch(need works with *-route)
includeglob-pattern-like string, only build-up pages-in-include, we will have some default include pages[]
excludeglob-pattern-like string, will not build-up pages-in-exclude[]

NOTE:

In future, it may support custom-preset. For now, if you want use offical presets, you need keep same project-pages-structure like examples

  • react-route - examples/basic-react
  • umi-route and umi-rematch - examples/umi-react
1.1.1

5 years ago

1.1.0

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.1-4

5 years ago

1.0.1-3

5 years ago

1.0.1-2

5 years ago

1.0.1-1

5 years ago

1.0.1-0

5 years ago

1.0.0

5 years ago

0.1.1-1

5 years ago

0.1.1-0

5 years ago

0.1.0

5 years ago

0.0.4-2

5 years ago

0.0.4-1

5 years ago

0.0.4-0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago