Skip to content

Commit 89b35d3

Browse files
thekibakylecarbs
authored andcommitted
Fixes calculating number of threads for HappyPack (#10)
1 parent 79acca5 commit 89b35d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/webpack.general.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ module.exports = (options = {}) => ({
105105
plugins: [
106106
new HappyPack({
107107
id: "ts",
108-
threads: os.cpus().length - 1,
108+
threads: Math.max(os.cpus().length - 1, 1),
109109
loaders: [{
110110
path: "ts-loader",
111111
query: {

0 commit comments

Comments
 (0)