C
C
code-by2019-10-30 13:41:01
Pug
code-by, 2019-10-30 13:41:01

How to convert site from gulp + pug to SPA (+ router) with vue/react?

there is a small site made using pug templates, sass, jquery (including element animation), gulp collector are used.
you need to make it so that there is a SPA (single page application) using a router, when navigating, the mp3 played in the background should not start first
, requests to the backserver will also be added (news feed, etc. + feedback form).
Is it possible to do this and what should I use? does it make sense to switch to webpack and what is better to use vue/react?
thanks for the replies, ideas, tips

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Neverov, 2019-10-30
@TTATPuOT

Do as you can.
I would do it with React. Not because it is correct, but because I know it and it is convenient for me to write on it. SPA they are in Africa SPA, no matter what you write it on - it will work plus or minus the same way.

P
Pashenka, 2019-10-30
@like-a-boss

Well, firstly: neither webpack nor galp are relevant to the essence of the issue. rewriting to the framework will be time-consuming. It's easier to throw a handler on all links by making routing + history API.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question