-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrollup.config.js
More file actions
38 lines (37 loc) · 882 Bytes
/
rollup.config.js
File metadata and controls
38 lines (37 loc) · 882 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
import { terser } from 'rollup-plugin-terser';
import { generateSW } from 'rollup-plugin-workbox'
import html from '@open-wc/rollup-plugin-html';
import resolve from '@rollup/plugin-node-resolve';
import license from 'rollup-plugin-license';
import minifyHTML from 'rollup-plugin-minify-html-literals';
import workboxConfig from './workbox-config.js'
export default {
input: 'index.html',
output: { dir: 'dist' },
plugins: [
html(),
minifyHTML(),
license({
thirdParty: {
includePrivate: true,
output: 'dist/dependencies.txt',
},
}),
resolve(),
generateSW(workboxConfig),
terser({
warnings: true,
keep_fnames: true,
compress: {
passes: 2
},
mangle: {
properties: false,
keep_fnames: true
},
output: {
comments: () => false,
},
}),
]
}