Showing
3 changed files
with
9 additions
and
1 deletions
This diff is collapsed. Click to expand it.
... | @@ -3,6 +3,7 @@ import resolve from '@rollup/plugin-node-resolve'; | ... | @@ -3,6 +3,7 @@ import resolve from '@rollup/plugin-node-resolve'; |
3 | import commonjs from '@rollup/plugin-commonjs'; | 3 | import commonjs from '@rollup/plugin-commonjs'; |
4 | import livereload from 'rollup-plugin-livereload'; | 4 | import livereload from 'rollup-plugin-livereload'; |
5 | import { terser } from 'rollup-plugin-terser'; | 5 | import { terser } from 'rollup-plugin-terser'; |
6 | +import copy from 'rollup-plugin-copy'; | ||
6 | 7 | ||
7 | const production = !process.env.ROLLUP_WATCH; | 8 | const production = !process.env.ROLLUP_WATCH; |
8 | 9 | ||
... | @@ -36,6 +37,12 @@ export default { | ... | @@ -36,6 +37,12 @@ export default { |
36 | }), | 37 | }), |
37 | commonjs(), | 38 | commonjs(), |
38 | 39 | ||
40 | + copy({ | ||
41 | + targets:[ | ||
42 | + { src:'src/images', dest:'public' } | ||
43 | + ] | ||
44 | + }), | ||
45 | + | ||
39 | // In dev mode, call `npm run start` once | 46 | // In dev mode, call `npm run start` once |
40 | // the bundle has been generated | 47 | // the bundle has been generated |
41 | !production && serve(), | 48 | !production && serve(), | ... | ... |
-
Please register or login to post a comment