commit 097c1a3bcbd8731e3fa9817dcdf6fcc7fe27620e
parent 4bd3f3fdaf067842c49af1ce5b2e3188066e7d17
Author: Pavel Lang <langpavel@phpskelet.org>
Date: Tue, 14 Feb 2017 01:30:46 +0100
Show message if stats will be generated for dev
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/tools/stats.js b/tools/stats.js
@@ -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.
*/