Skip to content

Commit

Permalink
custom message when runing hot
Browse files Browse the repository at this point in the history
  • Loading branch information
konzz committed Mar 22, 2018
1 parent 8d33437 commit 87bcd88
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions message.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const message = `
██╗ ██╗██╗ ██╗ █████╗ ███████╗██╗
██║ ██║██║ ██║██╔══██╗╚══███╔╝██║
██║ ██║██║ █╗ ██║███████║ ███╔╝ ██║
██║ ██║██║███╗██║██╔══██║ ███╔╝ ██║
╚██████╔╝╚███╔███╔╝██║ ██║███████╗██║
╚═════╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚══════╝╚═╝
`;
export default message;
3 changes: 2 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ db.once('open', function () {
console.info('==> 🌎 Listening on port %s. Open up http://localhost:%s/ in your browser.', port, port);
if (process.env.HOT) {
console.info('');
console.info('webpack building...');
console.info('webpack is watching...');
console.info(require('./message'));
}
});
})
Expand Down

0 comments on commit 87bcd88

Please sign in to comment.