Skip to content

Commit

Permalink
Add copyright banner
Browse files Browse the repository at this point in the history
  • Loading branch information
lelinhtinh committed May 10, 2018
1 parent 5663d8c commit 11eeb56
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion webpack.production.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/* eslint-env node */
const path = require('path');

const webpack = require('webpack');
const PACKAGE = require('./package.json');
const banner = `${PACKAGE.name} - ${PACKAGE.version} | (c) 2018 ${PACKAGE.author} | ${PACKAGE.license} | ${PACKAGE.homepage}`;

module.exports = {
mode: 'production',
target: 'web',
Expand Down Expand Up @@ -39,5 +43,8 @@ module.exports = {
use: 'babel-loader'
}
]
}
},
plugins: [
new webpack.BannerPlugin(banner)
]
};

0 comments on commit 11eeb56

Please sign in to comment.