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

@ -21,7 +21,10 @@ module.exports = function createClientConfig(props) {
.use(StatsWriterPlugin, [{filename: 'client.stats.json'}]);
// show compilation progress bar and build time
config.plugin('niceLog').use(webpackNiceLog, [{name: 'Client'}]);
const isProd = process.env.NODE_ENV === 'production';
config
.plugin('niceLog')
.use(webpackNiceLog, [{name: 'Client', skipBuildTime: isProd}]);
// user extended webpack-chain config
applyChainWebpack(props.siteConfig.chainWebpack, config, false);