File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export default (options: Record<string, string>): Context => {
2626 try {
2727 if ( options . config ) {
2828 config = JSON . parse ( fs . readFileSync ( options . config , 'utf-8' ) ) ;
29+ logger . debug ( `Config file ${ options . config } loaded: ${ JSON . stringify ( config , null , 2 ) } ` ) ;
2930
3031 // resolutions supported for backward compatibility
3132 if ( config . web ?. resolutions ) {
@@ -37,6 +38,8 @@ export default (options: Record<string, string>): Context => {
3738 if ( ! validateConfig ( config ) ) {
3839 throw new Error ( validateConfig . errors [ 0 ] . message ) ;
3940 }
41+ } else {
42+ logger . info ( "## No config file provided. Using default config." ) ;
4043 }
4144 port = parseInt ( options . port || '49152' , 10 ) ;
4245 if ( isNaN ( port ) || port < 1 || port > 65535 ) {
You can’t perform that action at this time.
0 commit comments