Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Output logging messages when using watch instead of devServer (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliperelman authored Oct 26, 2017
1 parent ee2e7ba commit dbc12fd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/neutrino/bin/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ module.exports = (middleware, args) => {

if (!compiler.options.devServer) {
spinner.succeed('Build completed');
const building = ora('Performing initial build');

compiler.plugin('done', () => building.succeed('Build completed'));
compiler.plugin('compile', () => {
building.text = 'Source changed, re-compiling';
building.start();
});
} else {
const { devServer } = compiler.options;
const url = `${devServer.https ? 'https' : 'http'}://${devServer.public}:${devServer.port}`;
Expand Down

0 comments on commit dbc12fd

Please sign in to comment.