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