set UV_THREADPOOL_SIZE=100
parent
23ccf625d6
commit
9824ebcb8e
|
@ -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"]
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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 path = require('path');
|
||||||
const express = require('express');
|
const express = require('express');
|
||||||
|
|
|
@ -48,7 +48,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
postcss: [autoprefixer],
|
postcss: [autoprefixer],
|
||||||
plugins: [
|
plugins: [
|
||||||
new ExtractTextPlugin('docs.css', {allChunks: true}),
|
new ExtractTextPlugin('docs.css', { allChunks: true }),
|
||||||
new webpack.HotModuleReplacementPlugin(),
|
new webpack.HotModuleReplacementPlugin(),
|
||||||
new webpack.NoErrorsPlugin(),
|
new webpack.NoErrorsPlugin(),
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
|
|
|
@ -45,7 +45,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
postcss: [autoprefixer],
|
postcss: [autoprefixer],
|
||||||
plugins: [
|
plugins: [
|
||||||
new ExtractTextPlugin('docs.css', {allChunks: true}),
|
new ExtractTextPlugin('docs.css', { allChunks: true }),
|
||||||
new webpack.optimize.UglifyJsPlugin({
|
new webpack.optimize.UglifyJsPlugin({
|
||||||
compress: { warnings: false }
|
compress: { warnings: false }
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in New Issue