forked from ailon/markerjs2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrollup.config.dev.js
More file actions
33 lines (32 loc) · 836 Bytes
/
rollup.config.dev.js
File metadata and controls
33 lines (32 loc) · 836 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 typescript from '@rollup/plugin-typescript';
import htmlTemplate from 'rollup-plugin-generate-html-template';
import dev from 'rollup-plugin-dev';
import livereload from 'rollup-plugin-livereload';
// import del from 'rollup-plugin-delete';
import copy from 'rollup-plugin-copy';
import svgo from 'rollup-plugin-svgo';
export default {
input: ['test/manual/index.ts'],
output: {
dir: 'build-dev',
format: 'umd',
sourcemap: true,
name: 'markerjs2'
},
plugins: [
//del({ targets: 'build-dev/*' }),
typescript(),
svgo(),
htmlTemplate({
template: 'test/manual/template.html',
target: 'index.html'
}),
copy({
targets: [{
src: 'test/manual/images/**/*', dest: 'build-dev/images'
}]
}),
dev('build-dev'),
livereload('build-dev')
]
};