const pkg = require('./package.json');
const moment = require('moment');
const localTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone
const timeStamp = moment().format('LLLL');
const banner = `
 Generated on ${timeStamp} - ${localTimeZone}
 Description: ${pkg.description}
 Package: ${pkg.name}
 Version: v${pkg.version}
 Contributors: ${pkg.contributors.map(function(contributor){ return contributor})}
 Source: ${pkg.repository.url}
 Docs: ${pkg.homepage}
 License: ${pkg.license}

 Any questions, suggestions, or problems? Feel free to file an issue at:
 ${pkg.bugs}

 Notice:
 Do NOT edit this file below this point, any changes will be overwritten.

`;

const webpack = require('webpack');
const path = require('path');

// ..   
    plugins: [
      new webpack.BannerPlugin({banner: banner}),
    ],
// ...