-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrollup.config.dev.js
34 lines (31 loc) · 1.01 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
import config from './rollup.config.js'
import serve from 'rollup-plugin-serve'
import livereload from 'rollup-plugin-livereload'
// const html = require('@rollup/plugin-html');
import copy from 'rollup-plugin-copy'
config.plugins.push(
// copy({
// targets: [
// { src: 'src/assets/rain.ico', dest: 'build/' },
// // { src: 'src/assets', dest: 'build/' },
// // { src: ['src/assets', 'assets/fonts/arial.woff2'], dest: 'dist/public/fonts' },
// // { src: 'assets/images/**/*', dest: 'dist/public/images' }
// ]
// }),
copy({
targets: [
{ src: 'src/assets/icon/iconfont.ttf', dest: 'build/' },
{ src: 'src/assets/icon/iconfont.woff', dest: 'build/' },
{ src: 'src/assets/icon/iconfont.woff2', dest: 'build/' },
]
}),
// html(),
serve({
open: true,
verbose: true,
openPage: '/build/index.html',
port: 520,
}),
livereload('build')
)
export default config