1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-15 15:18:22 +09:00
cherrypick/webpack/plugins/banner.ts

11 lines
326 B
TypeScript
Raw Normal View History

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