오윤석

static image 복사하도록 rollup script 수정

This diff is collapsed. Click to expand it.
......@@ -16,6 +16,7 @@
"svelte": "^3.0.0"
},
"dependencies": {
"sirv-cli": "^0.4.4"
"rollup-plugin-copy": "^3.3.0",
"sirv-cli": "^0.4.4",
}
}
......
......@@ -3,6 +3,7 @@ import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import livereload from 'rollup-plugin-livereload';
import { terser } from 'rollup-plugin-terser';
import copy from 'rollup-plugin-copy';
const production = !process.env.ROLLUP_WATCH;
......@@ -36,6 +37,12 @@ export default {
}),
commonjs(),
copy({
targets:[
{ src:'src/images', dest:'public' }
]
}),
// In dev mode, call `npm run start` once
// the bundle has been generated
!production && serve(),
......