You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a growing need to be able to embed and reuse Vue Components in non-spa applications. Meaning, applications that use serve-side template rendering (like JSP, PHP, Thymeleaf, etc).
In essence, use Vue Components directly in server-side rendered pages without using SPA underground plumbing of Vue router, VueX, etc. Just Vue components that can be reused.
The advantage is the ability to embed Vue in existing applications that have already been built using server-side page rendering technologies.
Currently, Vue supports two modes:
(Mode 1) Include vue.js directly via a CDN
(Mode 2) Create a Vue SPA application via "vue create"
This feature request is to support a third mode which is "(Mode 3) Create a Vue Component-Based Only application" which is similar to (Mode 2) above but will allow to build components separately in /dist folder to be included in the server side pages.
Currently, this is possible as described in the web links below, but we need to allow this "out-of-the-box" by enabling it as an option through "vue create" to set this up automatically without having to modify manually package.json files and other configurations.
Example popular setup tutorials that managed to have this setup, (notice it is not straight-forward to setup and hence I'm creating this feature request ticket):
What problem does this feature solve?
There is a growing need to be able to embed and reuse Vue Components in non-spa applications. Meaning, applications that use serve-side template rendering (like JSP, PHP, Thymeleaf, etc).
In essence, use Vue Components directly in server-side rendered pages without using SPA underground plumbing of Vue router, VueX, etc. Just Vue components that can be reused.
The advantage is the ability to embed Vue in existing applications that have already been built using server-side page rendering technologies.
Currently, Vue supports two modes:
(Mode 1) Include vue.js directly via a CDN
(Mode 2) Create a Vue SPA application via "vue create"
This feature request is to support a third mode which is "(Mode 3) Create a Vue Component-Based Only application" which is similar to (Mode 2) above but will allow to build components separately in /dist folder to be included in the server side pages.
Currently, this is possible as described in the web links below, but we need to allow this "out-of-the-box" by enabling it as an option through "vue create" to set this up automatically without having to modify manually package.json files and other configurations.
Example popular setup tutorials that managed to have this setup, (notice it is not straight-forward to setup and hence I'm creating this feature request ticket):
(1) Reusable Vue components in server side pages: https://reflectoring.io/reusable-vue-components-in-thymeleaf/
(2) Using Vue in Non-SPA Applications: https://jerickson.net/using-vue-in-non-spa/
What does the proposed API look like?
vue create "my-non-spa-component-based-project"
The text was updated successfully, but these errors were encountered: