Sha256: 8f91e99c1a63731c8ab6ac2cbf17534b18323abb347c992aa02b3fc2d4e03113

Contents?: true

Size: 1.28 KB

Versions: 15

Compression:

Stored size: 1.28 KB

Contents

'use strict'

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()

let fileDest  = 'bootstrap.js'
const external  = ['jquery', 'popper.js']
const plugins = [
  babel({
    exclude: 'node_modules/**', // only transpile our source code
    externalHelpersWhitelist: [ // include only required helpers
      'defineProperties',
      'createClass',
      'inheritsLoose'
    ]
  })
]
const globals = {
  jquery: '$',
  'popper.js': 'Popper'
}

if (BUNDLE) {
  fileDest = 'bootstrap.bundle.js'
  // remove last entry in external array to bundle Popper
  external.pop()
  delete globals['popper.js']
  plugins.push(resolve())
}

module.exports = {
  input: path.resolve(__dirname, '../js/src/index.js'),
  output: {
    file: path.resolve(__dirname, `../dist/js/${fileDest}`),
    format: 'iife'
  },
  name: 'bootstrap',
  external: external,
  globals: globals,
  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)
  */`
}

Version data entries

15 entries across 13 versions & 2 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/bootstrap-css/node_modules/bootstrap/build/rollup.config.js
optimacms-0.4.3 spec/dummy/node_modules/bootstrap-css/node_modules/bootstrap/build/rollup.config.js
optimacms-0.4.2 spec/dummy/node_modules/bootstrap-css/node_modules/bootstrap/build/rollup.config.js
optimacms-0.3.35 spec/dummy/node_modules/maxivak-bootstrap-css/node_modules/bootstrap/build/rollup.config.js
optimacms-0.3.35 node_modules/maxivak-bootstrap-css/node_modules/bootstrap/build/rollup.config.js
optimacms-0.3.34 node_modules/maxivak-bootstrap-css/node_modules/bootstrap/build/rollup.config.js
optimacms-0.3.34 spec/dummy/node_modules/maxivak-bootstrap-css/node_modules/bootstrap/build/rollup.config.js
optimacms-0.3.30 spec/dummy/node_modules/bootstrap/build/rollup.config.js
optimacms-0.3.29 spec/dummy/node_modules/bootstrap/build/rollup.config.js
optimacms-0.3.23 spec/dummy/node_modules/bootstrap/build/rollup.config.js
card-1.93.7 mod/bootstrap/vendor/bootstrap/build/rollup.config.js
card-1.93.6 mod/bootstrap/vendor/bootstrap/build/rollup.config.js
card-1.93.5 mod/bootstrap/vendor/bootstrap/build/rollup.config.js
card-1.93.4 mod/bootstrap/vendor/bootstrap/build/rollup.config.js
card-1.93.3 mod/bootstrap/vendor/bootstrap/build/rollup.config.js