Skip to content

Add and expose WatchIgnorePlugin - #858

Merged
sokra merged 1 commit into
webpack:masterfrom
hkal:assimilate-watchignoreplugin
Mar 23, 2015
Merged

sokra merged 1 commit into
webpack:masterfrom
hkal:assimilate-watchignoreplugin

Conversation

@hkal

@hkal hkal commented Mar 5, 2015

Copy link
Copy Markdown
Contributor

See webpack/webpack-dev-server#112. @sokra already wrote a plugin for this, but it was never added to the repository.

Usage like:

var path = require("path");
var WatchIgnorePlugin = require("webpack").WatchIgnorePlugin;

{
    plugins: [
        new WatchIgnorePlugin([
            path.resolve(__dirname, './ignore-more/'),
        ]),
    ],
}

If this is good to merge, I'll update the documentation after it's in master.

Comment thread lib/WatchIgnorePlugin.js Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add support for RegExp too?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Certainly.

  * Test stubs included
@hkal
hkal force-pushed the assimilate-watchignoreplugin branch from 25a0607 to ccabb75 Compare March 7, 2015 19:52
@hkal

hkal commented Mar 7, 2015

Copy link
Copy Markdown
Contributor Author

@sokra - Added regex support. Rebased and ready to merge.

sokra added a commit that referenced this pull request Mar 23, 2015
@sokra
sokra merged commit 027ddce into webpack:master Mar 23, 2015
@sokra

sokra commented Mar 23, 2015

Copy link
Copy Markdown
Member

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants