-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.dev.config.js
41 lines (40 loc) · 1.01 KB
/
rollup.dev.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
34
35
36
37
38
39
40
41
import { terser } from "rollup-plugin-terser";
import { nodeResolve } from '@rollup/plugin-node-resolve';
import serve from 'rollup-plugin-serve';
import livereload from 'rollup-plugin-livereload';
export default [
{
plugins: [nodeResolve(), serve(), livereload()],
input: './lib/giganttic-browser.js',
output: {
file: 'dist/giganttic-browser.cjs.js',
format: 'cjs'
}
},
{
plugins: [nodeResolve(), serve(), livereload()],
input: './lib/giganttic-browser.js',
output: {
file: 'dist/giganttic-browser.cjs.min.js',
plugins: [terser()],
format: 'cjs'
}
},
{
plugins: [nodeResolve(), serve(), livereload()],
input: './lib/giganttic-browser.js',
output: {
file: 'dist/giganttic-browser.esm.js',
format: 'esm'
}
},
{
plugins: [nodeResolve(), serve(), livereload()],
input: './lib/giganttic-browser.js',
output: {
file: 'dist/giganttic-browser.esm.min.js',
plugins: [terser()],
format: 'esm'
}
}
];