list of files (images) in public folder #10349
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
Beta Was this translation helpful? Give feedback.
-
@edesideri You can do it at build time. Check out how QCalendar gets a file list from the "examples" folder so it can be used dynamically. Then it's imported here and used: https://github.com/quasarframework/quasar-ui-qcalendar/blob/next/docs/src/router/routes.js#L2 |
Beta Was this translation helpful? Give feedback.
@edesideri You can do it at build time. Check out how QCalendar gets a file list from the "examples" folder so it can be used dynamically.
https://github.com/quasarframework/quasar-ui-qcalendar/blob/next/docs/src/assets/examples.js
Then it's imported here and used: https://github.com/quasarframework/quasar-ui-qcalendar/blob/next/docs/src/router/routes.js#L2