Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
6056 efrain 1
import babel from 'rollup-plugin-babel';
2
import replace from 'rollup-plugin-replace';
3
 
4
const pkg = require('./package.json');
5
 
6
export default {
7
  output  : {
8
    format   : 'umd',
9
    name     : 'bootstrap-confirmation',
10
    sourcemap: true,
11
    exports  : 'none',
12
    globals  : {
13
      'jquery': 'jQuery'
14
    },
15
    banner   : `/*!
16
 * Bootstrap Confirmation (v${pkg.version})
17
 * @copyright 2013 Nimit Suwannagate <ethaizone@hotmail.com>
18
 * @copyright 2014-2018 Damien "Mistic" Sorel <contact@git.strangeplanet.fr>
19
 * @licence Apache License, Version 2.0
20
 */`
21
  },
22
  external: [
23
    'jquery',
24
    'bootstrap'
25
  ],
26
  plugins : [
27
    replace({
28
      delimiters: ['', ''],
29
 
30
      '$VERSION'                                         : pkg.version,
31
      'import Popover from \'bootstrap/js/src/popover\';': 'import Popover from \'./popover\';',
32
      'export default Confirmation;'                     : ''
33
    }),
34
    babel({
35
      exclude: 'node_modules/**'
36
    })
37
  ]
38
};