-
Notifications
You must be signed in to change notification settings - Fork 2
/
rollup.config.cjs
46 lines (44 loc) · 1.17 KB
/
rollup.config.cjs
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
40
41
42
43
44
45
46
// http://rollupjs.org/guide/en/
// https://juejin.im/post/5a9fe754f265da237d028f37
// http://www.sosout.com/2018/08/04/rollup-tutorial.html
const resolve = require('rollup-plugin-node-resolve')
const commonjs = require('rollup-plugin-commonjs')
const json = require('rollup-plugin-json')
module.exports = [
{
input: './preload/lib/fix-path.js',
output: {
file: './preload/lib/output/fix-path.js',
format: 'cjs'
},
watch: { exclude: 'node_modules/**' },
plugins: [commonjs(), resolve(), json()]
},
{
input: './preload/lib/ip.js',
output: {
file: './preload/lib/output/ip.js',
format: 'cjs'
},
watch: { exclude: 'node_modules/**' },
plugins: [commonjs(), resolve(), json()]
},
{
input: './preload/lib/base64.js',
output: {
file: './preload/lib/output/base64.js',
format: 'cjs'
},
watch: { exclude: 'node_modules/**' },
plugins: [commonjs(), resolve(), json()]
},
{
input: './preload/lib/qrcode.js',
output: {
file: './preload/lib/output/qrcode.js',
format: 'cjs'
},
watch: { exclude: 'node_modules/**' },
plugins: [commonjs(), resolve(), json()]
}
]