From 2bc6c5aa75767d503fef07126ed14d36ce75d0de Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Fri, 21 Apr 2017 19:04:25 -0700 Subject: [PATCH] Revert git commit hash changes (mistake) --- make-webpack-config.js | 6 +----- package.json | 1 - src/core/index.js | 2 -- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/make-webpack-config.js b/make-webpack-config.js index 5a37e75a..bd20308a 100644 --- a/make-webpack-config.js +++ b/make-webpack-config.js @@ -2,14 +2,11 @@ var path = require('path') var webpack = require('webpack') var ExtractTextPlugin = require('extract-text-webpack-plugin') -var GitRevisionPlugin = require('git-revision-webpack-plugin') var deepExtend = require('deep-extend') var autoprefixer = require('autoprefixer') var loadersByExtension = require('./build-tools/loadersByExtension') -var gitRevisionPlugin = new GitRevisionPlugin() - module.exports = function(options) { // Special options, that have logic in this file @@ -62,8 +59,7 @@ module.exports = function(options) { new webpack.DefinePlugin({ 'process.env': { NODE_ENV: specialOptions.minimize ? JSON.stringify('production') : null, - WEBPACK_INLINE_STYLES: !Boolean(specialOptions.separateStylesheets), - COMMITHASH: JSON.stringify(gitRevisionPlugin.commithash()) + WEBPACK_INLINE_STYLES: !Boolean(specialOptions.separateStylesheets) }, })) diff --git a/package.json b/package.json index 10bd8950..09d84c89 100644 --- a/package.json +++ b/package.json @@ -93,7 +93,6 @@ "eslint-plugin-react": "^6.10.3", "extract-text-webpack-plugin": "0.8.2", "file-loader": "0.8.4", - "git-revision-webpack-plugin": "^2.4.1", "html-webpack-plugin": "^2.28.0", "imports-loader": "0.6.5", "json-loader": "0.5.3", diff --git a/src/core/index.js b/src/core/index.js index 40a386d3..c6bfe951 100644 --- a/src/core/index.js +++ b/src/core/index.js @@ -6,8 +6,6 @@ import * as AllPlugins from "core/plugins/all" import { filterConfigs } from "plugins/configs" import { parseSeach } from "core/utils" -console.log(`This Swagger-UI was built from ${process.env.COMMITHASH}.`) - module.exports = function SwaggerUI(opts) { const defaults = {