Skip to content

Commit 8fe46f0

Browse files
committed
banner string
1 parent 63a682f commit 8fe46f0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

webpack.config.babel.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
import path from 'path';
22
import webpack from 'webpack';
3+
import pkg from './package.json';
34

5+
const banner = pkg.name + ' v' + pkg.version + ' | (c) ' + new Date().getFullYear() + ' ' + pkg.author + ' | ' + pkg.license + ' | ' + pkg.homepage;
46
const env = process.env.BUILD_ENV;
5-
let plugins = [];
7+
let plugins = [
8+
new webpack.BannerPlugin(banner)
9+
];
610

711
if (env === 'dist') {
812
plugins = plugins.concat([

0 commit comments

Comments
 (0)