1.1.1 • Published 5 years ago
webpack-eliminate-loader v1.1.1
webpack-eliminate-loader
speed up build
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
Options | Usage | Default |
---|---|---|
presets | the way of how this loader work. Currently, only support umi-route , react-route , umi-rematch (need works with *-route ) | |
include | glob-pattern-like string, only build-up pages-in-include, we will have some default include pages | [] |
exclude | glob-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