Revert git commit hash changes (mistake)
This commit is contained in:
@@ -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)
|
||||
},
|
||||
}))
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user