forked from imloama/fireflywallet-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
39 lines (36 loc) · 918 Bytes
/
rollup.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* globals process */
var buble = require('rollup-plugin-buble');
var uglify = require('rollup-plugin-uglify');
var nodeResolve = require('rollup-plugin-node-resolve');
var environment = process.env.ENV || 'development';
var isDevelopmentEnv = (environment === 'development');
module.exports = [
{
input: 'lib/index.js',
name: 'FireFlyWallet',
sourceMap: false,
output: {
format: 'iife',
file: 'dist/fireflywallet.js',
},
plugins: [
nodeResolve({ jsnext: true, main: true, browser: true }),
buble(),
!isDevelopmentEnv && uglify({ output: { inline_script: true } }),
],
},{
input: 'lib/index.js',
name: 'FireFlyWallet',
sourceMap: false,
context: 'window',
output: {
format: 'iife',
file: 'dist/fireflywallet.min.js',
},
plugins: [
nodeResolve({ jsnext: true, main: true, browser: true }),
buble(),
uglify({ output: { inline_script: true } }),
],
},
];