forked from pagedjs/pagedjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.server.config.js
executable file
·42 lines (37 loc) · 827 Bytes
/
rollup.server.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
42
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import json from 'rollup-plugin-json';
// import builtins from 'rollup-plugin-node-builtins';
// import globals from 'rollup-plugin-node-globals';
import pkg from './package.json';
import serve from 'rollup-plugin-serve'
import livereload from 'rollup-plugin-livereload'
const plugins = [
resolve(),
commonjs(),
json(),
// globals(),
// builtins(),
serve({
port: 9090,
contentBase: './',
headers: {
"Access-Control-Allow-Origin": "*",
"Service-Worker-Allowed": "/",
}
}),
livereload({
watch: ['dist', 'examples']
})
];
export default [
{
input: "./src/polyfill/polyfill.js",
output: {
name: 'PagedPolyfill',
file: "./dist/paged.polyfill.js",
format: 'umd'
},
plugins: plugins
}
];