Django and Webpack - Webpack Setup & Configuration, JavaScript Assets, Entry Points, Output Bundles

  Рет қаралды 7,097

BugBytes

BugBytes

Күн бұрын

Пікірлер: 31
@loicleray
@loicleray Жыл бұрын
Dude. This video is gold. Much appreciated. The little summary at the end was mint too. Thank you!
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks man! Glad it was useful!
@loicleray
@loicleray Жыл бұрын
@@bugbytes3923 Been binging your vids since watching this one. Subbed and Kofi'd ya. It ain't much, but it's a little thanks.
@bugbytes3923
@bugbytes3923 Жыл бұрын
@@loicleray thanks a lot man. Really appreciate that!
@dheekshithmahalingam6734
@dheekshithmahalingam6734 Жыл бұрын
Dude thanks a lot for this video from my heart! This video is a life saver for me!❤✨
@bugbytes3923
@bugbytes3923 Жыл бұрын
Glad to hear that! :) Thanks for the nice comment and thanks for watching!
@julius8183
@julius8183 Жыл бұрын
Great video. Very well explained! Exactly what I was looking for.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot!
@adi2scoops
@adi2scoops 2 жыл бұрын
Love your videos, I’m new to programming and they’ve helped me so much through my journey. It does seem like the development of the app is the easy bit and the deployment of that app into production is a whole new learning curve!
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Thank you! There's so much that can go into building a web-app, and optimizing for production is a big topic, for sure!
@israasalameh6879
@israasalameh6879 Жыл бұрын
it's a wonderful explanation, I have use it in my djangocms-project. because I have many css and js files.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you very much! Good luck with your project :)
@israasalameh6879
@israasalameh6879 Жыл бұрын
@@bugbytes3923 Hello, I want to ask about webpack-django-loader, is it the same as this ?
@nicenaija9952
@nicenaija9952 2 жыл бұрын
Been wanting to learn this
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Cool!
@leboyoyo
@leboyoyo 8 ай бұрын
awesome serie, do you think that would work with vite as well?
@jaradc2198
@jaradc2198 Жыл бұрын
Am using django-pipeline and I hate it. I'm on the fence of learning Webpack or Parcel but the journey to learn how to create a workflow with Django is mystifying right now. If you know how to use Parcel with a Django project (or rollup, or anything all the glam right now), I would love to learn the workflow specifically - the tactical details of integration.
@chaselamkin
@chaselamkin Жыл бұрын
what is the best practice for when you have a very large django project? For example I have many different apps that present different views based on what type of user is authenticated. Should I keep the css and js all inside one assets folder then create multiple bundles that go to the different apps. Is it even possible to create multiple entrypoints that output to different files?
@dodokwak
@dodokwak Жыл бұрын
After creating a bundle for static content (incl bootstrap) I've noticed strange effect by going from one page to another. Something like blinking (choppy) as if there were some delay in request . It's noticeable and not very pleasant user experience. Could you give me some advise how to avoid it, please?
@tobidegnon4409
@tobidegnon4409 2 жыл бұрын
Hum, I never thought of using a bundler with pure SSR Django without involving a js framework like vuejs or react, wondering how this can be useful, seems like an interesting topic 🤔. I'm here for it
@bugbytes3923
@bugbytes3923 2 жыл бұрын
It’s particularly useful if you’re including lots of third party packages (HTMX, Alpine, jQuery, Lodash etc - or indeed React and Vue) and/or you need to transpile TypeScript, JSX or SASS to normal JS/CSS. Webpack can help with this. One thing I wanna explore later is the ability to use React within a Django template (i.e without having a separate front end project). Webpack can help you do this too. Anyway, thanks for your interest!
@tobidegnon4409
@tobidegnon4409 2 жыл бұрын
​@@bugbytes3923 Interesting, thanks for sharing your knowledge.
@repotranstech
@repotranstech 2 жыл бұрын
@@bugbytes3923 this could be very interesting, looking forward to it.
@bugbytes3923
@bugbytes3923 2 жыл бұрын
@@repotranstech thanks !
@keenwire8166
@keenwire8166 2 жыл бұрын
@@bugbytes3923 thank you for yet another great initiative! On the TypeScript note (though this can pertain to JavaScript as well), would you bundle all the transpiled TS files into one JS bundle? Recently I've ended up transpiling TS files with a bash script per directory (separate for different templates) so local files have access to other scopes but not to everything. This becomes a bit hacky when you also want to include some utils that are useful for more than one directory... Curious what you think!
@robertowork7311
@robertowork7311 2 жыл бұрын
Hello, webpack is used to have react / vue with django without the need to use rest api?
@Schlumpfpirat
@Schlumpfpirat 2 жыл бұрын
How does django-compressor relate?
@blabla-kk8bl
@blabla-kk8bl 2 жыл бұрын
Integrating vue with Django Templates can be good too.
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Yes. I'm going to do a video on this later on!
@ranahussain8599
@ranahussain8599 Жыл бұрын
I bought a html template. It has Jquery and bootstrap but webpack can't resolve jquery. I am getting console error Uncaught ReferenceError: $ is not defined at 249 (bundle.js:2:41) at __webpack_require__ (bundle.js:2:415098) at bundle.js:2:415309 at bundle.js:2:458486 at bundle.js:2:458490 I tried every thing but it is not working. I don't want to install Jquery through npm I already have in file path. these are the plugin import './js/jquery.js'; import './js/forms.js'; import './js/scripts.js'; import './js/plugins/custom-tabs.js'; import './js/plugins/html5lightbox.js'; import './js/plugins/jquery.form.js'; import './js/plugins/bootstrap-datetimepicker.min.js'; import './js/plugins/bootstrap.min.js'; import './js/plugins/froogaloop2.min.js'; import './js/plugins/jquery.validate.min.js'; import './js/plugins/moment.min.js'; import './js/plugins/slick.min.js'; then I am include this file into main entry point file. I try this // var $ = require("./js/jquery"); // window.jQuery = $; // window.$ = $; did not work at all. Any help. I will appreciate. Thanks
Django and Alpine.js - Introduction to Alpine.js
20:26
BugBytes
Рет қаралды 10 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
django-unfold - TailwindCSS Admin Theme for Django!
25:14
BugBytes
Рет қаралды 10 М.
DjangoCon Europe 2023 | HTMX vs WASM - more backend or more frontend?
29:44
Webpack 5 Crash Course | Frontend Development Setup
41:17
Traversy Media
Рет қаралды 311 М.