trivago / parallel-webpack

Builds multi-config webpack projects in parallel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WatchOptions.ignored

josephliccini opened this issue · comments

Hi!

I use the parallel-webpack watch feature, but it seems to watch all files in my filesystem. Also, it doesn't seem to respect the setting: watchOptions.ignored in my webpack config when set.

Is there a way to get this in parallel-webpack as well? I can consider a PR when I find some time. Maybe it already supports this and I am not setting it up correctly?

Thanks!

We pass the watchOptions to the webpack's watcher directly via their node API as config basis. In theory it should work. Needs more investigation to see if it is wrong setup or a problem with us or webpack.

Hello @josephliccini,

I tried to reproduce it but I couldn't be able to.
With the following config, when i changed something on c.js it was not triggering build.

module.exports = [{
    entry: './a.js',
    output: {
        path: path.resolve(__dirname, './dist'),
        filename: 'pageA.bundle.js'
    }
}, {
    entry: './b.js',
    output: {
        path: path.resolve(__dirname, './dist'),
        filename: 'pageB.bundle.js'
    },
    watchOptions: {
        ignored: '**/c.js'
    }
}]

I will close the issue since I cannot reproduce it.
If your issue continues please let us know and feel free to reopen, with the ways to reproduce if possible.