@@ -20,12 +20,12 @@ try {
2020 if ( __filename !== localWebpack ) {
2121 return require ( localWebpack ) ;
2222 }
23- } catch ( e ) { }
23+ } catch ( e ) { }
2424var yargs = require ( "yargs" )
2525 . usage ( "webpack " + require ( "../package.json" ) . version + "\n" +
26- "Usage: https://webpack.js.org/api/cli/\n" +
27- "Usage without config file: webpack <entry> [<entry>] <output>\n" +
28- "Usage with config file: webpack" ) ;
26+ "Usage: https://webpack.js.org/api/cli/\n" +
27+ "Usage without config file: webpack <entry> [<entry>] <output>\n" +
28+ "Usage with config file: webpack" ) ;
2929
3030require ( "./config-yargs" ) ( yargs ) ;
3131
@@ -340,7 +340,13 @@ yargs.parse(process.argv.slice(2), (err, argv, output) => {
340340 var lastHash = null ;
341341 var compiler ;
342342 try {
343- insightReporter . trackEvent ( insightEvents . buildEvent ( { action : "options-collected" , label : JSON . stringify ( options ) , value : 1 } ) ) ;
343+ insightReporter . trackEvent (
344+ insightEvents . configEvent ( {
345+ action : "options-collected" ,
346+ label : JSON . stringify ( options ) ,
347+ value : 1
348+ } )
349+ ) ;
344350 compiler = webpack ( options ) ;
345351 } catch ( e ) {
346352 var WebpackOptionsValidationError = require ( "../lib/WebpackOptionsValidationError" ) ;
@@ -367,7 +373,13 @@ yargs.parse(process.argv.slice(2), (err, argv, output) => {
367373 compiler . purgeInputFileSystem ( ) ;
368374 }
369375
370- insightReporter . trackEvent ( insightEvents . buildEvent ( { action : "build-end" , label : "compiler build end" , value : 9999 } ) ) ;
376+ insightReporter . trackEvent (
377+ insightEvents . buildEvent ( {
378+ action : "build-end" ,
379+ label : "compiler build end" ,
380+ value : 9999
381+ } )
382+ ) ;
371383 if ( err ) {
372384 lastHash = null ;
373385 console . error ( err . stack || err ) ;
@@ -398,7 +410,13 @@ yargs.parse(process.argv.slice(2), (err, argv, output) => {
398410 compiler . watch ( watchOptions , compilerCallback ) ;
399411 console . log ( "\nWebpack is watching the files…\n" ) ;
400412 } else
401- insightReporter . trackEvent ( insightEvents . buildEvent ( { action : "build-start" , label : "compiler build start" , value : 2 } ) ) ;
413+ insightReporter . trackEvent (
414+ insightEvents . buildEvent ( {
415+ action : "build-start" ,
416+ label : "compiler build start" ,
417+ value : 2
418+ } )
419+ ) ;
402420 compiler . run ( compilerCallback ) ;
403421 }
404422
0 commit comments