Skip to content

Commit 318851b

Browse files
committed
Add banner
1 parent 0b7d36e commit 318851b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

webpack.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1+
var webpack = require('webpack');
2+
var PACKAGE = require('./package.json');
3+
var banner = PACKAGE.name + ' ' + PACKAGE.version;
4+
15
module.exports = {
26
entry: './src/index.js',
37
output: {
48
filename: 'addsearch-js-client.min.js',
59
library: 'AddSearchClient',
610
libraryTarget: 'global'
711
},
12+
plugins: [
13+
new webpack.BannerPlugin({
14+
banner: banner
15+
})
16+
],
817
mode: 'production',
918
module: {
1019
rules: [

0 commit comments

Comments
 (0)