Skip to content
This repository was archived by the owner on Jan 22, 2018. It is now read-only.

Commit 3e734c6

Browse files
author
Kamil Kisiela
committed
chore: add banner
1 parent 10f6a99 commit 3e734c6

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

webpack/dist.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1+
var webpack = require('webpack');
12
var build = require('./build')('dist');
3+
var pkg = require('../package.json');
24

35
module.exports = {
46
entry: build.entry,
57
output: build.output(),
68
module: {
79
loaders: build.loaders()
8-
}
10+
},
11+
plugins: [
12+
new webpack.BannerPlugin(pkg.name + " JavaScript Library v" + pkg.version + "\n" +
13+
"\n" +
14+
"@license MIT (http://license.angular-formly.com)\n" +
15+
"\n" +
16+
"built with ♥ by " + pkg.author)
17+
]
918
};

webpack/prod.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var webpack = require('webpack');
22
var build = require('./build')('prod');
3+
var pkg = require('../package.json');
34

45
module.exports = {
56
entry: build.entry,
@@ -9,6 +10,7 @@ module.exports = {
910
loaders: build.loaders()
1011
},
1112
plugins: [
12-
new webpack.optimize.UglifyJsPlugin()
13+
new webpack.optimize.UglifyJsPlugin(),
14+
new webpack.BannerPlugin(pkg.name + " JavaScript Library v" + pkg.version + " | MIT | built with ♥ by " + pkg.author)
1315
]
1416
};

0 commit comments

Comments
 (0)