forked from HenrikJoreteg/feather-route-matcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrollup.config.js
38 lines (37 loc) · 823 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
const commonJs = require('rollup-plugin-commonjs')
const filesize = require('rollup-plugin-filesize')
const nodeResolve = require('rollup-plugin-node-resolve')
const uglify = require('rollup-plugin-uglify')
module.exports = [
{
input: 'index.js',
output: {
file: 'feather-route-matcher.js',
exports: 'default',
format: 'umd',
name: 'createMatcher',
sourcemap: true
},
plugins: [
nodeResolve(),
commonJs(),
filesize()
]
},
{
input: 'index.js',
output: {
file: 'feather-route-matcher.min.js',
exports: 'default',
format: 'umd',
name: 'createMatcher',
sourcemap: true
},
plugins: [
nodeResolve(),
commonJs(),
uglify.uglify({ mangle: true, compress: true }),
filesize()
]
}
]