jormungandr-bite/webpack/plugins/banner.ts

11 lines
326 B
TypeScript
Raw Normal View History

2017-06-06 11:22:03 -06:00
import * as os from 'os';
2017-05-24 22:54:31 -06:00
import * as webpack from 'webpack';
export default version => new webpack.BannerPlugin({
2017-06-06 09:10:01 -06:00
banner:
`Misskey v${version} | MIT Licensed, (c) syuilo 2014-2017\n` +
'https://github.com/syuilo/misskey\n' +
2017-06-06 11:22:03 -06:00
`built by ${os.hostname()} at ${new Date()}\n` +
2017-06-06 09:10:01 -06:00
'hash:[hash], chunkhash:[chunkhash]'
2017-05-24 22:54:31 -06:00
});