diff options
author | Johann-S <johann.servoire@gmail.com> | 2017-08-31 20:00:51 +0300 |
---|---|---|
committer | Johann-S <johann.servoire@gmail.com> | 2017-08-31 20:12:32 +0300 |
commit | c3fe53cd42d8055b596f287e37497bc65d52eecf (patch) | |
tree | 8b0aaf3b8fba6b38559cdeda3cb8652b183aacf7 /build/rollup.config.js | |
parent | 9936bf59444c402b653f28449529eab83794e911 (diff) |
Use rollup to add our copyright instead of a custom script
Diffstat (limited to 'build/rollup.config.js')
-rw-r--r-- | build/rollup.config.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/build/rollup.config.js b/build/rollup.config.js index 7cec6ef1cc..d6eb0cf5dd 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) + */ + ` } |