commit b3edce66c4d639d8703ec694c6414dfbe469b1ad
parent 53231cb772fe84eef3890859044e80077da60a99
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Sun, 19 Mar 2017 00:32:43 +0300
print release version at start
Diffstat:
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js
@@ -205,7 +205,10 @@ module.exports = {
// makes the discovery automatic so you don't have to restart.
// See https://github.com/facebookincubator/create-react-app/issues/186
new WatchMissingNodeModulesPlugin(paths.appNodeModules),
- new webpack.DefinePlugin({'NODE_ENV': JSON.stringify(process.env.NODE_ENV)}),
+ new webpack.DefinePlugin({
+ 'NODE_ENV': JSON.stringify(process.env.NODE_ENV),
+ 'RELEASE_VER': '"local devel"',
+ }),
],
// Some libraries import Node modules but don't use them in the browser.
// Tell Webpack to provide empty mocks for them so importing them works.
diff --git a/src/index.js b/src/index.js
@@ -26,5 +26,9 @@ window.onunhandledrejection = (e) => {
return result;
};
+/* eslint-disable no-undef */
+console.log('Version:', RELEASE_VER);
+/* eslint-enable no-undef */
+
App.setUp();