@@ -5,7 +5,6 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
55const CaseSensitivePathsPlugin = require ( 'case-sensitive-paths-webpack-plugin' ) ;
66const CopyWebpackPlugin = require ( 'copy-webpack-plugin' ) ;
77const HappyPack = require ( 'happypack' ) ;
8- const childProcess = require ( 'child_process' ) ;
98const WatchMissingNodeModulesPlugin = require ( '../scripts/utils/WatchMissingNodeModulesPlugin' ) ;
109const env = require ( './env' ) ;
1110
@@ -17,15 +16,6 @@ const __DEV__ = NODE_ENV === 'development'; // eslint-disable-line no-underscore
1716const __PROD__ = NODE_ENV === 'production' ; // eslint-disable-line no-underscore-dangle
1817const babelConfig = __DEV__ ? babelDev : babelProd ;
1918
20- const COMMIT_COUNT = childProcess
21- . execSync ( 'git rev-list --count HEAD' )
22- . toString ( ) ;
23-
24- const COMMIT_HASH = childProcess
25- . execSync ( 'git rev-parse --short HEAD' )
26- . toString ( ) ;
27- const VERSION = `${ COMMIT_COUNT } -${ COMMIT_HASH } ` ;
28-
2919module . exports = {
3020 entry : {
3121 app : [ require . resolve ( './polyfills' ) , path . join ( paths . appSrc , 'index.js' ) ] ,
@@ -206,7 +196,6 @@ module.exports = {
206196 // Makes some environment variables available to the JS code, for example:
207197 // if (process.env.NODE_ENV === 'development') { ... }. See `env.js`.
208198 new webpack . DefinePlugin ( env ) ,
209- new webpack . DefinePlugin ( { VERSION : JSON . stringify ( VERSION ) } ) ,
210199 // Watcher doesn't work well if you mistype casing in a path so we use
211200 // a plugin that prints an error when you attempt to do this.
212201 // See https://github.com/facebookincubator/create-react-app/issues/240
0 commit comments