function build() {
  console.log('Creating an optimized production build...');
  webpack(config).run((err) => {
    if (err) {
      console.error('Failed to create a production build. Reason:');
      console.error(err.message || err);
      process.exit(1);
    }

    console.log(chalk.green('Compiled successfully.'));
    console.log(`The ${chalk.cyan('dist')} folder is ready to be deployed.`);
    console.log();
  });
}
function build() {
  console.log('Creating an optimized production build...');
  webpack(config).run((err) => {
    if (err) {
      console.error('Failed to create a production build. Reason:');
      console.error(err.message || err);
      process.exit(1);
    }

    console.log(chalk.green('Compiled successfully.'));
    console.log(`The ${chalk.cyan('dist')} folder is ready to be deployed.`);
    console.log();
  });
}
function build ( ) { console . log ( 'Creating an optimized production build...' ) ; webpack ( config ) . run ( ( err ) => { if ( err ) { console . error ( 'Failed to create a production build. Reason:' ) ; console . error ( err . message || err ) ; process . exit ( 1 ) ; } console . log ( chalk . green ( 'Compiled successfully.' ) ) ; console . log ( ` ${ chalk . cyan ( 'dist' ) } ` ) ; console . log ( ) ; } ) ; }
Create the production build and print the deployment instructions.
Create the production build and print the deployment instructions .