-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
33 lines (31 loc) · 1.1 KB
/
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
import strip from '@rollup/plugin-strip';
import copy from 'rollup-plugin-copy'
import terser from "@rollup/plugin-terser"
import replace from '@rollup/plugin-replace';
export default [
{
input: 'js/app/app.js',
output: [
{file: 'dist/shoebox.esm.js', format: 'es'},
{file: 'dist/shoebox.esm.min.js', format: 'es', sourcemap: true, plugins: [terser()]}
],
plugins: [
strip({
debugger: true,
functions: ['console.log', 'assert.*', 'debug']
}),
copy({
targets:
[
{src: 'res', dest: 'dist/'},
{src: './css/juicebox.css', dest: 'dist/css/'},
{src: './css/shoebox.css', dest: 'dist/css/'},
{src: './css/img', dest: 'dist/css/'},
{src: './css/app.css', dest: 'dist/css/'},
{src: 'img', dest: 'dist/'},
{src: 'juiceboxConfig.js', dest: 'dist/'},
]
})
]
}
]