Merge "Fix error on single-CPU machine"
This commit is contained in:
commit
fd40b95913
@ -133,7 +133,7 @@ module.exports = {
|
||||
plugins: [
|
||||
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
|
||||
new HappyPack({
|
||||
threads: os.cpus().length - 1,
|
||||
threads: os.cpus().length - 1 || 1,
|
||||
id: 'jsx',
|
||||
loaders: ['babel-loader?cacheDirectory'],
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user