V
V
vitaly_742021-10-16 09:11:49
webpack
vitaly_74, 2021-10-16 09:11:49

How to port large html template to vue.js?

there is a ready-made large template on html the question is how to quickly transfer it to vuejs? I google, but there are no normal answers.
As I see it:
1. I upload all css, js, pictures to the project via webpack.
2. I copy the html code into the view components and use it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2021-10-16
@vitaly_74

AND? Your algorithm is absolutely valid.)
Vue templates are completely html compatible (unlike .
Threw html into .vue.
Threw css on daddies - made import '/some.css';
I threw pictures on daddies - vue is smart, he will pull them up through webpack.
And everything works.)
But iteration from js you have to rewrite vue-way. If there was some jquery or something like that - it is not at all compatible with the vue paradigm. Of course, you can nail it, and it’s quite simple, but I won’t advise you how.)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question