Add version number to output

This commit is contained in:
Josh Johnson 2016-08-12 15:51:31 +01:00
parent b93362cbb0
commit 1cacf4798b
4 changed files with 12 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"version":3,"file":"choices.min.js","sources":[],"mappings":";;","sourceRoot":""}

View file

@ -48,7 +48,8 @@
"postcss-cli": "^2.5.1",
"webpack": "^1.12.14",
"webpack-dev-server": "^1.14.1",
"whatwg-fetch": "^1.0.0"
"whatwg-fetch": "^1.0.0",
"wrapper-webpack-plugin": "^0.1.7"
},
"dependencies": {
"redux": "^3.3.1"

View file

@ -1,5 +1,8 @@
var path = require('path');
var package = require('./package.json');
var webpack = require('webpack');
var wrapperPlugin = require('wrapper-webpack-plugin');
var banner = `/*! ${ package.name } v${ package.version } | (c) ${ new Date().getFullYear() } ${ package.author } | ${ package.homepage } */ \n`
module.exports = {
devtool: 'cheap-module-source-map',
@ -29,6 +32,9 @@ module.exports = {
'NODE_ENV': JSON.stringify('production'),
}
}),
new wrapperPlugin({
header: banner,
}),
],
module: {
loaders: [{