rollup.config.js
919 Bytes
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 generate = require('videojs-generate-rollup-config');
// see https://github.com/videojs/videojs-generate-rollup-config
// for options
const options = {input: 'src/pkcs7.js'};
const config = generate(options);
// Add additonal builds/customization here!
config.builds = Object.assign(config.builds, {
pad: config.makeBuild('browser', {
input: 'src/pad.js',
output: [{
name: 'pkcs7.pad',
file: 'dist/pkcs7.pad.js',
format: 'umd'
}, {
name: 'pkcs7.pad',
file: 'dist/pkcs7.pad.min.js',
format: 'umd'
}]
}),
unpad: config.makeBuild('browser', {
input: 'src/unpad.js',
output: [{
name: 'pkcs7.unpad',
file: 'dist/pkcs7.unpad.js',
format: 'umd'
}, {
name: 'pkcs7.unpad',
file: 'dist/pkcs7.unpad.min.js',
format: 'umd'
}]
})
});
// export the builds to rollup
export default Object.values(config.builds);