Skip to content

Commit

Permalink
feat(scripts/start.js): Upgrade the script to use webpack@4.# APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
halfzebra committed Aug 30, 2018
1 parent 18be292 commit e0a8d68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function createCompiler(webpack, config, appName, urls) {
// recompiling a bundle. WebpackDevServer takes care to pause serving the
// bundle, so if you refresh, it'll wait instead of serving the old one.
// "invalid" is short for "bundle invalidated", it doesn't imply any errors.
compiler.plugin('invalid', () => {
compiler.hooks.invalid.tap('invalid', () => {
if (isInteractive) {
clearConsole();
}
Expand All @@ -92,7 +92,7 @@ function createCompiler(webpack, config, appName, urls) {

// "done" event fires when Webpack has finished recompiling the bundle.
// Whether or not you have warnings or errors, you will get this event.
compiler.plugin('done', stats => {
compiler.hooks.done.tap('done', stats => {
if (isInteractive) {
clearConsole();
}
Expand Down

0 comments on commit e0a8d68

Please sign in to comment.