File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,3 +44,4 @@ node_modules
4444
4545# Debug log from npm
4646npm-debug.log
47+ .idea
Original file line number Diff line number Diff line change @@ -8,13 +8,19 @@ const express = require('express');
88const createWebpackMiddleware = require ( 'webpack-dev-middleware' ) ;
99const createWebpackHotMiddleware = require ( 'webpack-hot-middleware' ) ;
1010
11- function createNotification ( subject , msg ) {
11+ function createNotification ( subject , msg , open ) {
1212 const title = `🔥 ${ subject . toUpperCase ( ) } ` ;
1313
14- notifier . notify ( {
14+ var notifyProps = {
1515 title,
16- message : msg ,
17- } ) ;
16+ message : msg
17+ } ;
18+
19+ if ( typeof open === "string" ) {
20+ notifyProps . open = open ;
21+ }
22+
23+ notifier . notify ( notifyProps ) ;
1824
1925 console . log ( `==> ${ title } -> ${ msg } ` ) ;
2026}
@@ -71,7 +77,7 @@ class HotServer {
7177 // requiring it. It returns the http listener too.
7278 this . listenerManager = new ListenerManager ( require ( compiledOutputPath ) . default ) ;
7379
74- createNotification ( 'server' , '✅ Running' ) ;
80+ createNotification ( 'server' , '🌎 Running' , `http://localhost: ${ process . env . SERVER_PORT } ` ) ;
7581 } catch ( err ) {
7682 createNotification ( 'server' , '😵 Bundle invalid, check console for error' ) ;
7783 console . log ( err ) ;
You can’t perform that action at this time.
0 commit comments