From 9824ebcb8e07c50aafd3b7c67c059ae08c999030 Mon Sep 17 00:00:00 2001 From: ustccjw <317713370@qq.com> Date: Thu, 29 Oct 2015 18:38:42 +0800 Subject: [PATCH] set UV_THREADPOOL_SIZE=100 --- docs/.babelrc | 20 -------------------- docs/server.js | 2 +- docs/webpack.config.development.js | 2 +- docs/webpack.config.production.js | 2 +- server.js | 2 +- 5 files changed, 4 insertions(+), 24 deletions(-) delete mode 100644 docs/.babelrc diff --git a/docs/.babelrc b/docs/.babelrc deleted file mode 100644 index a3a2c1d4..00000000 --- a/docs/.babelrc +++ /dev/null @@ -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"] - }] - } - } - } - } -} diff --git a/docs/server.js b/docs/server.js index ddd810a5..c355af21 100644 --- a/docs/server.js +++ b/docs/server.js @@ -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'); diff --git a/docs/webpack.config.development.js b/docs/webpack.config.development.js index a92b4781..89eb79b5 100644 --- a/docs/webpack.config.development.js +++ b/docs/webpack.config.development.js @@ -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({ diff --git a/docs/webpack.config.production.js b/docs/webpack.config.production.js index 957dd22f..2cf9ca77 100644 --- a/docs/webpack.config.production.js +++ b/docs/webpack.config.production.js @@ -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 } }), diff --git a/server.js b/server.js index 08b9fe0a..98d389f3 100644 --- a/server.js +++ b/server.js @@ -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');