-
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathrollup.dev.config.js
More file actions
35 lines (34 loc) · 862 Bytes
/
rollup.dev.config.js
File metadata and controls
35 lines (34 loc) · 862 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
import globals from './rollup.globals.js'
import livereload from 'rollup-plugin-livereload'
import pkg from './package.json'
import rollup from './rollup.module.config.js'
import serve from 'rollup-plugin-serve'
import dev from 'rollup-plugin-dev'
export default Object.assign({}, rollup, {
output: [
{
format: 'umd',
name: pkg.moduleName,
globals: globals,
file: 'tmp/index.dev.js'
},
],
plugins: [...rollup.plugins,
serve({
host: '0.0.0.0',
open: 'true',
port: '8000',
openPage: 'http://127.0.0.1:8000/dev.html'
}),
dev({
port: '8000',
proxy: [
{ from: '/track', to:'https://jsonplaceholder.typicode.com/posts' },
{ from: '/login', to:'http://localhost:1337/signature/recover' },
],
}),
livereload({
watch: ['dist', 'src']
})
]
})