mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-19 03:41:19 +02:00
Add license headers in js/dist files
By implementing the same approach of rollup.config.js and replicate it in build-plugins.js, individual plugins will display license headers.
This commit is contained in:
11
build/banner.js
Normal file
11
build/banner.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const path = require('path')
|
||||
const pkg = require(path.resolve(__dirname, '../package.json'))
|
||||
const year = new Date().getFullYear()
|
||||
|
||||
module.exports = function () {
|
||||
return `/*!
|
||||
* Bootstrap v${pkg.version} (${pkg.homepage})
|
||||
* Copyright 2011-${year} ${pkg.author}
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||
*/`
|
||||
}
|
Reference in New Issue
Block a user