summaryrefslogtreecommitdiff
path: root/webpack/plugins/banner.ts
blob: 47b8cd355567021b474d5c9bebc92a7ab8a213ee (plain)
1
2
3
4
5
6
7
8
9
10
import * as os from 'os';
import * as webpack from 'webpack';

export default version => new webpack.BannerPlugin({
	banner:
		`Misskey v${version} | MIT Licensed, (c) syuilo 2014-2017\n` +
		'https://github.com/syuilo/misskey\n' +
		`built by ${os.hostname()} at ${new Date()}\n` +
		'hash:[hash], chunkhash:[chunkhash]'
});