-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathrollup.config.js
More file actions
33 lines (27 loc) · 786 Bytes
/
rollup.config.js
File metadata and controls
33 lines (27 loc) · 786 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
import livereload from 'rollup-plugin-livereload'
import serve from 'rollup-plugin-serve'
// import html from 'rollup-plugin-fill-html';
import baseConfig from './rollup.config.base.js'
const config = Object.assign(baseConfig,
{
input: 'examples/src/simple/main.js',
output: {
file: 'examples/dist/simple/index.js',
format: 'umd',
},
})
// config.plugins.push(html({
// template: 'index.html',
// filename: 'index.html'
// }))
const isProduction = process.env.NODE_ENV === `production`
const isDevelopment = process.env.NODE_ENV === `development`
// if (isDevelopment) {
// config.plugins.push(livereload())
// config.plugins.push(serve({
// contentBase: ['examples/dist/simple'],
// port: 8080,
// open: true
// }))
// }
export default config