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