Skip to content

Commit faea393

Browse files
committed
Add licensing and copyright information to banner
1 parent bfce79b commit faea393

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

webpack.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ const path = require('node:path');
22
const webpack = require('webpack');
33
const pkg = require('./package.json');
44

5-
const banner = `${pkg.name} - v${pkg.version} | ${(new Date()).getFullYear()}`;
5+
const banner = `
6+
${pkg.name} - v${pkg.version}
7+
Copyright (c) ${pkg.author}
8+
Licensed under the ${pkg.license} License.
9+
`;
610

711
function makeConfig({ target }) {
812
const fileMap = {
@@ -53,7 +57,7 @@ function makeConfig({ target }) {
5357
],
5458
},
5559
plugins: [
56-
new webpack.BannerPlugin(banner),
60+
new webpack.BannerPlugin(banner.trim()),
5761
],
5862
};
5963
}

0 commit comments

Comments
 (0)