diff options
| author | Helmut Granda <[email protected]> | 2018-09-25 18:55:35 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2018-09-26 15:53:44 +0300 |
| commit | ebc220754bf8f6b1a34203c1d2864a8d156a01bb (patch) | |
| tree | 7223271386f11a4a86e47e52e421d58434831a78 /build/build-plugins.js | |
| parent | d7f79b06dceebd6844ac323f7f99290fe36b45b0 (diff) | |
| download | bootstrap-ebc220754bf8f6b1a34203c1d2864a8d156a01bb.tar.xz bootstrap-ebc220754bf8f6b1a34203c1d2864a8d156a01bb.zip | |
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.
Diffstat (limited to 'build/build-plugins.js')
| -rw-r--r-- | build/build-plugins.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/build/build-plugins.js b/build/build-plugins.js index f76796700..678044685 100644 --- a/build/build-plugins.js +++ b/build/build-plugins.js @@ -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, |
