-
I'm building a website using Statamic 5 and need to integrate a library of Vue 3 components on the frontend. However, I'm running into conflicts with the CMS, which is using Vue 2 and the Vite I've experimented with setting up a separate directory with its own package.json and a separate Vite config, but I'm facing issues with the paths that Vite expects in development mode. Has anyone managed to solve this problem or found a better approach? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The control panel's assets come pre-compiled, so you should be able to remove the vue 2 stuff from your vite config. It's only in there by default in case you want to make some custom components for the cp. |
Beta Was this translation helpful? Give feedback.
Ah yeah that did occur to me but I already built a widget that uses Vue2 components in the CMS. Maybe I can rewrite the Vue2 stuff to get rid of the dependency though, thanks for the suggestion.