Skip to content

Commit

Permalink
Fix: Fix webpack warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
elevatebart authored and Artem Sapegin committed Oct 18, 2018
1 parent 621c2c6 commit ffd8adb
Show file tree
Hide file tree
Showing 5 changed files with 2,633 additions and 1,455 deletions.
6 changes: 3 additions & 3 deletions bin/styleguidist.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function commandBuild() {
verbose('Webpack config:', compiler.options);

// Custom error reporting
compiler.plugin('done', function(stats) {
compiler.hooks.done.tap('rsgCustomErrorBuild', function(stats) {
const messages = formatWebpackMessages(stats.toJson({}, true));
const hasErrors = printAllErrorsAndWarnings(messages, stats.compilation);
if (hasErrors) {
Expand Down Expand Up @@ -146,13 +146,13 @@ function commandServer() {
verbose('Webpack config:', compiler.options);

// Show message when webpack is recompiling the bundle
compiler.plugin('invalid', function() {
compiler.hooks.invalid.tap('rsgInvalidServer', function() {
console.log();
spinner = ora('Compiling...').start();
});

// Custom error reporting
compiler.plugin('done', function(stats) {
compiler.hooks.done.tap('rsgCustomErrorServer', function(stats) {
if (spinner) {
spinner.stop();
}
Expand Down

0 comments on commit ffd8adb

Please sign in to comment.