diff --git a/scripts/webpack.general.config.js b/scripts/webpack.general.config.js index 3cd931644..26587519a 100644 --- a/scripts/webpack.general.config.js +++ b/scripts/webpack.general.config.js @@ -105,7 +105,7 @@ module.exports = (options = {}) => ({ plugins: [ new HappyPack({ id: "ts", - threads: os.cpus().length - 1, + threads: Math.max(os.cpus().length - 1, 1), loaders: [{ path: "ts-loader", query: {