[Vuejs]-How to add a Vuetify only on the admin page ('admin/***')?

1๐Ÿ‘

โœ…

A module will be available globally, a buildModule will be compiled at build time and available globally too.

You will need several things to maybe make it work:

  • use the old syntax like import Vuetify from ...
  • add it to the layouts/admin.vue file only
  • add the related CSS style there too (not sure if the CSS is tree-shakable there)

Meanwhile, since you do plan probably plan to have an admin dashboard separated from the main app, I think the best idea is to split the apps directly and maybe manage it through API calls or a headless CMS. But so far, Iโ€™m not sure that there is an easy solution here.

Leave a comment