[Vuejs]-Name.vue.twig file, is it possible?

0👍

Sorry for forgetting this post. So here is the answer :

The best solution I found was to install webpack encore (very well documented in symfony’s doc here).
Then you just need one .twig file in wich you’ll load your .js and .css files that get built by webpack encore.

👤ken

0👍

You probably can figure out a way to use PHP rendering for your Vue templates, but I wouldn’t recommend it. Especially if you’re using an old framework like symfony1, moving towards modern, unencumbered, static Vue components can provide a path out of old-framework-lock-in.

Leave a comment