Build Tools General Discussion #128
Replies: 2 comments
-
I am very much interested in this kind of architecture, and since I am working with Django a lot this project is quite interesting. |
Beta Was this translation helpful? Give feedback.
-
Mee too. I am planning/building a rather bigger project, and as much as I dislike Javascript, I won't get around it there. django-sockpuppet is an almost perfect solution for me, but it lacks "helpers" for tooling and Js frontends. I think the way to go is "unbundlers" and modern Js, as well as web components. |
Beta Was this translation helpful? Give feedback.
-
I would like to have a non-directed conversation about the virtues and pitfalls of different front-end code organization strategies.
I currently use Webpack and know it well enough to suffice, but my fantasy is to move to Snowpack (when it's mature enough) for discretely bundling each controller with those dependencies that need to be tree-shaken, and use ES module syntax for importing Stimulus and each controller bundle. Cascading network calls kill your load time, but if you're only going two steps down for one or two files (
index.html -> index.js -> controller-plus-deps.js
), it's barely an issue. The worst part right now is having to remember to set up both Django and Webpack dev servers when I start work.Beta Was this translation helpful? Give feedback.
All reactions