-
Notifications
You must be signed in to change notification settings - Fork 29
/
rollup.config.dev.js
45 lines (44 loc) · 1.2 KB
/
rollup.config.dev.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
43
44
45
import resolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import versionInjector from 'rollup-plugin-version-injector';
import localResolve from 'rollup-plugin-local-resolve';
import livereload from 'rollup-plugin-livereload';
import serve from 'rollup-plugin-serve';
export default {
input: 'src/index.js',
plugins: [
versionInjector(),
localResolve(),
resolve({
module: true,
jsnext: true,
main: true,
browser: true,
extensions: ['.js']
}),
commonjs(),
serve({
open: true,
openPage: '/index.html',
verbose: true,
contentBase: ['examples',
'dist',
'lib',
'node_modules/parcoord-es/dist'
],
historyApiFallback: false,
host: 'localhost',
port: 3004
}),
livereload({
watch: ['examples', 'dist'],
verbose: false
})
],
external: [],
output: {
name: "reorder",
file: "dist/reorder.js",
format: "umd"
}
};