#!/usr/bin/env nodeconstshelljs=require('shelljs');constchalk=require('chalk');constanimateProgress=require('./helpers/progress');constaddCheckMark=require('./helpers/checkmark');constprogress=animateProgress('Generating stats');shelljs.exec('webpack --config internals/webpack/webpack.prod.babel.js --profile --json > stats.json',addCheckMark.bind(null,callback),);functioncallback(){clearInterval(progress);process.stdout.write('\n\nOpen '+chalk.magenta('http://webpack.github.io/analyse/')+' in your browser and upload the stats.json file!'+chalk.blue('\n(Tip: '+chalk.italic('CMD + double-click')+' the link!)\n\n',),);}