Revert git commit hash changes (mistake)

This commit is contained in:
Kyle Shockey
2017-04-21 19:04:25 -07:00
parent 51dac3eea1
commit 2bc6c5aa75
3 changed files with 1 additions and 8 deletions

View File

@@ -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)
},
}))

View File

@@ -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",

View File

@@ -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 = {