Y
Y
Yeldos Adetbekov2017-03-14 21:57:31
Django
Yeldos Adetbekov, 2017-03-14 21:57:31

How to use SPA Vue.js partially on django?

Greetings! All the same, I got to the SPA. I used vue in django only as an add-on (I connected the js file and that's it). Now there is a need to include additional modules via require. As I understand it, one cannot do without a webpack or something like that, since the browser by default does not understand the new Javascript "tricks". Tried installing vue-cli in /static/. Everything works fine, but not on the jang itself, but as separate standalone apps (runs on port: 8080). And I need the initial html to generate not a twist, but a django. Further through restapi.
Are there any ready-made markups to see the general structure. How to organize this? Help me please.
ps: I assume that webpack only replaces our syntax with the requester, and puts everything in order so that js does not get confused about what to call first, and for uglify (Stuffs everything into one file). Please can you explain this to me. It's very hard to understand the frontend stuff.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artyom Bryukhanov, 2017-03-14
@drupa

I think this will help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question