1.0.1 • Published 1 year ago

webpack-entry-filter-plugin v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

webpack-entry-filter-plugin

description

Filter your webpack entry by entry glob pattern and 🚀 your webpack dev speed.

install

npm install webpack-entry-filter-plugin --save-dev
touch .entryrc
# .entryrc
# define your entry glob pattern
# for example:
live/**/
events/upgrade

after that, you can use this plugin in your webpack config file.

const { WebpackEntryFilterPlugin } = require('webpack-entry-filter-plugin');
module.exports = {
    // your webpack config
    plugins: [
        // only in dev mode
        process.env.NODE_ENV === 'development' ? new WebpackEntryFilterPlugin() : null
        
    ]
}

when you run webpack, it will only bundle the entry files that match the glob pattern. like the example above, it will only bundle the all pages in live folder and page in events/upgrade folder;

important

You should always use this plugin in dev mode。

1.0.1

1 year ago

1.0.0-beta.2

1 year ago

1.0.0-beta.1

1 year ago

1.0.0

1 year ago