Fix webpack watchers with ignores (CPU) (#2342)

This commit is contained in:
Jaco Greeff 2020-03-08 08:59:07 +01:00 committed by GitHub
parent 8e3bdfd192
commit c661922a52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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/]
}
};
}