Yes, a Vue.js application can be embedded into a custom code block on a Webflow page, although there are some limitations and caveats due to Webflow’s environment. Several developers have implemented this successfully by following specific steps.
To use Vue.js, you must first load the framework into your page.
<script src="https://unpkg.com/vue@3"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
You’ll need to manually include an HTML embed using the Webflow Designer.
<div id="app">{{ message }}</div>
To initialize your Vue app, add the script after the element is loaded.
Go to Page Settings > Custom Code > Footer Code section.
Add your Vue initialization script, for example:
```
```
There are a few things to be careful of:
Yes — people have successfully embedded Vue mini-apps in Webflow, especially for:
You can find examples in community forums like Webflow's and on GitHub, where developers create Vue components and embed them similarly.
You can run a Vue.js app inside a Webflow page using the Embed block and Custom Code in Page Settings, as long as it's a simple instance and doesn’t require full SPA routing. For more complex functions, integrate Vue within isolated sections or consider exporting Webflow code and enhancing it externally.