mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-06 16:02:24 +02:00
Add version number to output
This commit is contained in:
parent
b93362cbb0
commit
1cacf4798b
4
assets/scripts/dist/choices.min.js
vendored
4
assets/scripts/dist/choices.min.js
vendored
File diff suppressed because one or more lines are too long
1
assets/scripts/dist/choices.min.js.map
vendored
Normal file
1
assets/scripts/dist/choices.min.js.map
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"choices.min.js","sources":[],"mappings":";;","sourceRoot":""}
|
|
@ -48,7 +48,8 @@
|
||||||
"postcss-cli": "^2.5.1",
|
"postcss-cli": "^2.5.1",
|
||||||
"webpack": "^1.12.14",
|
"webpack": "^1.12.14",
|
||||||
"webpack-dev-server": "^1.14.1",
|
"webpack-dev-server": "^1.14.1",
|
||||||
"whatwg-fetch": "^1.0.0"
|
"whatwg-fetch": "^1.0.0",
|
||||||
|
"wrapper-webpack-plugin": "^0.1.7"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"redux": "^3.3.1"
|
"redux": "^3.3.1"
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
|
var package = require('./package.json');
|
||||||
var webpack = require('webpack');
|
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 = {
|
module.exports = {
|
||||||
devtool: 'cheap-module-source-map',
|
devtool: 'cheap-module-source-map',
|
||||||
|
@ -29,6 +32,9 @@ module.exports = {
|
||||||
'NODE_ENV': JSON.stringify('production'),
|
'NODE_ENV': JSON.stringify('production'),
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
new wrapperPlugin({
|
||||||
|
header: banner,
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
module: {
|
module: {
|
||||||
loaders: [{
|
loaders: [{
|
||||||
|
|
Loading…
Reference in a new issue