3 ms·
Interested on the incrementally enhanced part of your comment. Are you using Vue with the script tags and using .vue components?
by raihansaputra 6y ago
Interested on the incrementally enhanced part of your comment. Are you using Vue with the script tags and using .vue components?
- Rapzid 6y agoEssentially. We build out a bunch of separate entry points(pages in @vue/cli language) in two separate groups; components and pages. Both serve the same purpose in that the entry point is responsible for wiring the Vue components into the legacy page. Components may be included on every page or a number of pages, "page" entry points are meant to be included on certain routes. They are brought in via script tags in the legacy web framework.
- raihansaputra 6y agoWhat kind of webpack config are you using? Something similar to Laravel Mix?
- Rapzid 6y agoI just found out about Laravel Mix a month or so ago so I'm not sure. They are customized @vue/cli configs: Main UI: https://github.com/rundeck/rundeck/blob/main/rundeckapp/grails-spa/packages/ui/vue.config.js https://github.com/rundeck/rundeck/blob/main/rundeckapp/grai... Component lib: https://github.com/rundeck/rundeck/blob/main/rundeckapp/grails-spa/packages/ui-trellis/vue.config.js https://github.com/rundeck/rundeck/blob/main/rundeckapp/grai... Storybook: https://github.com/rundeck/rundeck/blob/main/rundeckapp/grails-spa/packages/ui-trellis/.storybook/main.js https://github.com/rundeck/rundeck/blob/main/rundeckapp/grai...
- raihansaputra 6y agoThank you for sharing!