Add message that reveals commit that SwaggerUI was derived from

This commit is contained in:
Kyle Shockey
2017-04-20 17:11:54 -07:00
parent 6cd66bb4f9
commit 06c82bb325
10 changed files with 57 additions and 56 deletions

View File

@@ -2,11 +2,14 @@ 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
@@ -59,7 +62,8 @@ module.exports = function(options) {
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: specialOptions.minimize ? JSON.stringify('production') : null,
WEBPACK_INLINE_STYLES: !Boolean(specialOptions.separateStylesheets)
WEBPACK_INLINE_STYLES: !Boolean(specialOptions.separateStylesheets),
COMMITHASH: JSON.stringify(gitRevisionPlugin.commithash())
},
}))