mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-21 04:41:36 +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:
@@ -9,6 +9,7 @@ const rollup = require('rollup')
|
||||
const path = require('path')
|
||||
const babel = require('rollup-plugin-babel')
|
||||
const TEST = process.env.NODE_ENV === 'test'
|
||||
const banner = require(path.resolve(__dirname, './banner.js'))
|
||||
|
||||
const plugins = [
|
||||
babel({
|
||||
@@ -67,6 +68,7 @@ Object.keys(bsPlugins)
|
||||
external
|
||||
}).then((bundle) => {
|
||||
bundle.write({
|
||||
banner,
|
||||
format,
|
||||
name: pluginKey,
|
||||
sourcemap: true,
|
||||
|
Reference in New Issue
Block a user