From 11eeb566f1fce5b94db97f0fcb3509744eea0d32 Mon Sep 17 00:00:00 2001 From: baivong Date: Thu, 10 May 2018 11:52:11 +0700 Subject: [PATCH] Add copyright banner --- webpack.production.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/webpack.production.config.js b/webpack.production.config.js index d6f36a2..7994dfd 100644 --- a/webpack.production.config.js +++ b/webpack.production.config.js @@ -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', @@ -39,5 +43,8 @@ module.exports = { use: 'babel-loader' } ] - } + }, + plugins: [ + new webpack.BannerPlugin(banner) + ] };