set UV_THREADPOOL_SIZE=100

old
ustccjw 2015-10-29 18:38:42 +08:00
parent 23ccf625d6
commit 9824ebcb8e
5 changed files with 4 additions and 24 deletions

View File

@ -1,20 +0,0 @@
{
"stage": 0,
"env": {
"development": {
"plugins": ["react-transform"],
"extra": {
"react-transform": {
"transforms": [{
"transform": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}, {
"transform": "react-transform-catch-errors",
"imports": ["react", "redbox-react"]
}]
}
}
}
}
}

View File

@ -1,4 +1,4 @@
process.env.UV_THREADPOOL_SIZE = Math.ceil(Math.max(4, require('os').cpus().length * 1.5));
process.env.UV_THREADPOOL_SIZE = 100;
const path = require('path');
const express = require('express');

View File

@ -48,7 +48,7 @@ module.exports = {
},
postcss: [autoprefixer],
plugins: [
new ExtractTextPlugin('docs.css', {allChunks: true}),
new ExtractTextPlugin('docs.css', { allChunks: true }),
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin(),
new webpack.DefinePlugin({

View File

@ -45,7 +45,7 @@ module.exports = {
},
postcss: [autoprefixer],
plugins: [
new ExtractTextPlugin('docs.css', {allChunks: true}),
new ExtractTextPlugin('docs.css', { allChunks: true }),
new webpack.optimize.UglifyJsPlugin({
compress: { warnings: false }
}),

View File

@ -1,4 +1,4 @@
process.env.UV_THREADPOOL_SIZE = Math.ceil(Math.max(4, require('os').cpus().length * 1.5));
process.env.UV_THREADPOOL_SIZE = 100;
const path = require('path');
const express = require('express');