docs: add thread-loader warnings (#5777) [ci skip]

This commit is contained in:
Robbin Baauw
2020-08-15 09:28:47 +02:00
committed by GitHub
parent a1ee583ede
commit c227e1f12e
5 changed files with 12 additions and 0 deletions
+2
View File
@@ -26,6 +26,8 @@ module.exports = {
[thread-loader](https://github.com/webpack-contrib/thread-loader) is enabled by default when the machine has more than 1 CPU cores. This can be turned off by setting `parallel: false` in `vue.config.js`.
`parallel` should be set to `false` when using Babel in combination with non-serializable loader options, such as regexes, dates and functions. These options would not be passed correctly to `babel-loader` which may lead to unexpected errors.
## Installing in an Already Created Project
``` sh
+2
View File
@@ -24,6 +24,8 @@ If opted to use [TSLint](https://palantir.github.io/tslint/) during project crea
[thread-loader](https://github.com/webpack-contrib/thread-loader) is enabled by default when the machine has more than 1 CPU cores. This can be turned off by setting `parallel: false` in `vue.config.js`.
`parallel` should be set to `false` when using Typescript in combination with non-serializable loader options, such as regexes, dates and functions. These options would not be passed correctly to `ts-loader` which may lead to unexpected errors.
## Installing in an Already Created Project
``` sh