aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/twbs/bootstrap/build/rollup.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/twbs/bootstrap/build/rollup.config.js')
-rw-r--r--vendor/twbs/bootstrap/build/rollup.config.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/vendor/twbs/bootstrap/build/rollup.config.js b/vendor/twbs/bootstrap/build/rollup.config.js
index 93370d31d..e81a07ef5 100644
--- a/vendor/twbs/bootstrap/build/rollup.config.js
+++ b/vendor/twbs/bootstrap/build/rollup.config.js
@@ -3,10 +3,9 @@
const path = require('path')
const babel = require('rollup-plugin-babel')
const resolve = require('rollup-plugin-node-resolve')
+const banner = require('./banner.js')
-const pkg = require(path.resolve(__dirname, '../package.json'))
const BUNDLE = process.env.BUNDLE === 'true'
-const year = new Date().getFullYear()
let fileDest = 'bootstrap.js'
const external = ['jquery', 'popper.js']
@@ -38,11 +37,7 @@ if (BUNDLE) {
module.exports = {
input: path.resolve(__dirname, '../js/src/index.js'),
output: {
- banner: `/*!
- * Bootstrap v${pkg.version} (${pkg.homepage})
- * Copyright 2011-${year} ${pkg.author}
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- */`,
+ banner,
file: path.resolve(__dirname, `../dist/js/${fileDest}`),
format: 'umd',
globals,