From e5bb7c2ab898765b6310b04ef751971dc147fd68 Mon Sep 17 00:00:00 2001 From: Endi Date: Mon, 21 Oct 2019 18:32:23 +0700 Subject: [PATCH] feat(v2): new ui progress bar (#1866) --- CHANGELOG-2.x.md | 3 + packages/docusaurus/package.json | 2 +- packages/docusaurus/src/commands/start.ts | 2 - packages/docusaurus/src/webpack/client.ts | 5 +- .../src/webpack/plugins/LogPlugin.js | 27 ++ packages/docusaurus/src/webpack/server.ts | 6 +- yarn.lock | 396 ++++++------------ 7 files changed, 170 insertions(+), 271 deletions(-) create mode 100644 packages/docusaurus/src/webpack/plugins/LogPlugin.js diff --git a/CHANGELOG-2.x.md b/CHANGELOG-2.x.md index 96a8093120..211c3e8b5d 100644 --- a/CHANGELOG-2.x.md +++ b/CHANGELOG-2.x.md @@ -1,5 +1,8 @@ # Docusaurus 2 Changelog +## 2.0.0-alpha.29 +- New UI for webpack compilation progress bar. + ## 2.0.0-alpha.28 - Further reduce memory usage to avoid heap memory allocation failure. - Fix `keywords` frontmatter for SEO not working properly. diff --git a/packages/docusaurus/package.json b/packages/docusaurus/package.json index 8bd419f51b..6348e397f5 100644 --- a/packages/docusaurus/package.json +++ b/packages/docusaurus/package.json @@ -79,7 +79,7 @@ "webpack-bundle-analyzer": "^3.6.0", "webpack-dev-server": "^3.8.2", "webpack-merge": "^4.2.2", - "webpack-nicelog": "^2.3.1" + "webpackbar": "^4.0.0" }, "peerDependencies": { "react": "^16.8.4", diff --git a/packages/docusaurus/src/commands/start.ts b/packages/docusaurus/src/commands/start.ts index 734ea7393f..357d433c0d 100644 --- a/packages/docusaurus/src/commands/start.ts +++ b/packages/docusaurus/src/commands/start.ts @@ -79,8 +79,6 @@ export async function start( const urls = prepareUrls(protocol, host, port); const openUrl = normalizeUrl([urls.localUrlForBrowser, baseUrl]); - console.log(chalk.cyan(`Your site will be accessible at ${openUrl}`)); - let config: webpack.Configuration = merge(createClientConfig(props), { plugins: [ // Generates an `index.html` file with the