We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b7d36e commit 318851bCopy full SHA for 318851b
webpack.config.js
@@ -1,10 +1,19 @@
1
+var webpack = require('webpack');
2
+var PACKAGE = require('./package.json');
3
+var banner = PACKAGE.name + ' ' + PACKAGE.version;
4
+
5
module.exports = {
6
entry: './src/index.js',
7
output: {
8
filename: 'addsearch-js-client.min.js',
9
library: 'AddSearchClient',
10
libraryTarget: 'global'
11
},
12
+ plugins: [
13
+ new webpack.BannerPlugin({
14
+ banner: banner
15
+ })
16
+ ],
17
mode: 'production',
18
module: {
19
rules: [
0 commit comments