forked from duckduckgo/Android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrollup.config.js
More file actions
26 lines (25 loc) · 752 Bytes
/
rollup.config.js
File metadata and controls
26 lines (25 loc) · 752 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
import json from '@rollup/plugin-json'
import copy from 'rollup-plugin-copy'
import { terser } from "rollup-plugin-terser";
import { nodeResolve } from '@rollup/plugin-node-resolve'
export default [
{
input: 'autoconsent/autoconsent-impl/libs/userscript.js',
output: [
{
file: 'autoconsent/autoconsent-impl/libs/autoconsent-bundle.js',
format: 'iife'
}
],
plugins: [
nodeResolve(),
json(),
terser(),
copy({
targets: [
{ src: 'node_modules/@duckduckgo/autoconsent/rules/rules.json', dest: 'autoconsent/autoconsent-impl/libs' },
]
})
]
}
]