Skip to content

Commit

Permalink
Show message if stats will be generated for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
langpavel committed Feb 14, 2017
1 parent 4bd3f3f commit 097c1a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ import { writeFile } from 'fs';
import { open } from 'openurl';
import webpackConfig from './webpack.config';

const isDebug = !process.argv.includes('--release');
const WEBPACK_ANALYSER_URL = 'http://webpack.github.io/analyse/';

if (isDebug) {
console.log('INFO: You should run `yarn stats -- --release` if you want production stats');
}

/**
* Creates application stats for client bundle.
*/
Expand Down

0 comments on commit 097c1a3

Please sign in to comment.