aboutsummaryrefslogtreecommitdiff
path: root/build/rollup.config.js
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2017-08-31 19:00:51 +0200
committerJohann-S <[email protected]>2017-08-31 19:12:32 +0200
commitc3fe53cd42d8055b596f287e37497bc65d52eecf (patch)
tree8b0aaf3b8fba6b38559cdeda3cb8652b183aacf7 /build/rollup.config.js
parent9936bf59444c402b653f28449529eab83794e911 (diff)
downloadbootstrap-c3fe53cd42d8055b596f287e37497bc65d52eecf.tar.xz
bootstrap-c3fe53cd42d8055b596f287e37497bc65d52eecf.zip
Use rollup to add our copyright instead of a custom script
Diffstat (limited to 'build/rollup.config.js')
-rw-r--r--build/rollup.config.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/build/rollup.config.js b/build/rollup.config.js
index 7cec6ef1c..d6eb0cf5d 100644
--- a/build/rollup.config.js
+++ b/build/rollup.config.js
@@ -1,7 +1,9 @@
const path = require('path')
const babel = require('rollup-plugin-babel')
const resolve = require('rollup-plugin-node-resolve')
+const pkg = require(path.resolve(__dirname, '../package.json'))
const BUNDLE = process.env.BUNDLE === 'true'
+const year = new Date().getFullYear()
var fileDest = 'bootstrap.js'
var external = ['jquery', 'popper.js']
@@ -39,5 +41,11 @@ module.exports = {
name: 'bootstrap',
external: external,
globals: globals,
- plugins: plugins
+ plugins: plugins,
+ banner: `/*!
+ * Bootstrap v${pkg.version} (${pkg.homepage})
+ * Copyright 2011-${year} ${pkg.author}
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+ */
+ `
}