chore: rename v2 project back to Docusaurus (#975)

* feat: better log message on build

* feat: rename any 'endiliey|munseo' to 'facebook|docusaurus'

* test: remove unwanted console.log
This commit is contained in:
Endilie Yacop Sucipto 2018-09-21 18:46:19 +08:00 committed by GitHub
parent 8568a96e65
commit fbdd79981d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 44 additions and 35 deletions

View file

@ -31,10 +31,13 @@ module.exports = function createServerConfig(props) {
},
]);
// show compilation progress bar and build time
// show compilation progress bar
const isProd = process.env.NODE_ENV === 'production';
config
.plugin('niceLog')
.use(webpackNiceLog, [{name: 'Server', color: 'yellow'}]);
.use(webpackNiceLog, [
{name: 'Server', color: 'yellow', skipBuildTime: isProd},
]);
// user extended webpack-chain config
applyChainWebpack(props.siteConfig.chainWebpack, config, true);