Fix webpack watchers with ignores (CPU) (#2342)
This commit is contained in:
parent
8e3bdfd192
commit
c661922a52
@ -184,7 +184,10 @@ function createWebpack ({ alias = {}, context, name = 'index' }) {
|
||||
static: path.join(process.cwd(), '/build')
|
||||
})
|
||||
]).filter((plugin) => plugin),
|
||||
watch: !isProd
|
||||
watch: !isProd,
|
||||
watchOptions: {
|
||||
ignored: ['.yarn', /build/, /node_modules/]
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user