MENU

Fun & Interesting

django-vite - integrate Vite with Django | TailwindCSS v4 setup

BugBytes 5,269 2 months ago
Video Not Working? Fix It Now

โ˜•๏ธ ๐—•๐˜‚๐˜† ๐—บ๐—ฒ ๐—ฎ ๐—ฐ๐—ผ๐—ณ๐—ณ๐—ฒ๐—ฒ: To support the channel and encourage new videos, please consider buying me a coffee here: https://ko-fi.com/bugbytes Follow-up video: https://www.youtube.com/watch?v=RkSnBpPh12o In this video, we'll learn how to use Vite in a Django project for bundling static assets. We'll use the django-vite package and will see how to set it up to bundle TailwindCSS v4. ๐Ÿ“Œ ๐—–๐—ต๐—ฎ๐—ฝ๐˜๐—ฒ๐—ฟ๐˜€: 00:00 Intro 00:44 Installing django-vite 01:52 Creating Vite config file - vite.config.js 04:50 Installing Vite 08:14 Serving optimised assets with django-vite 12:31 TailwindCSS v4 and django-vite setup 19:39 Setting aliases with Vite 21:30 django-vite in production ๐—ฆ๐—ผ๐—ฐ๐—ถ๐—ฎ๐—น ๐— ๐—ฒ๐—ฑ๐—ถ๐—ฎ: ๐Ÿ“– Blog: https://bugbytes.io/posts/ ๐Ÿ‘พ Github: https://github.com/bugbytes-io/ ๐Ÿ“š ๐—™๐˜‚๐—ฟ๐˜๐—ต๐—ฒ๐—ฟ ๐—ฟ๐—ฒ๐—ฎ๐—ฑ๐—ถ๐—ป๐—ด ๐—ฎ๐—ป๐—ฑ ๐—ถ๐—ป๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐˜๐—ถ๐—ผ๐—ป: Django-vite: https://github.com/MrBin99/django-vite Vite: https://vite.dev/ Vite commands: https://vite.dev/guide/cli.html TailwindCSS v4: https://tailwindcss.com/blog/tailwindcss-v4 Tailwind Automatic Detection: https://tailwindcss.com/blog/tailwindcss-v4#automatic-content-detection #python #django #tailwindcss #vitejs

Comment