You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see you are using django-webpack-loader 1.8.1, while latest is 3.2.4. At my company we switched to django-vite from 0.x quite easily. Would you be interested in a PR to make the change ?
Thanks for the offer! Yes, a PR moving the frontend build to Vite would be welcome.
One thing to know first: django-webpack-loader is a leftover. It's pinned in pyproject.toml but not used anywhere (not in INSTALLED_APPS, no render_bundle in the templates). The templates load the built files directly from static/ (js/lutris.min.js, js/editor.min.js, css/styles.css), and webpack builds them from the three entries in webpack.common.conf.js.
So what we'd like is:
Replace webpack with Vite for those three entries (frontend/js/app.js, frontend/js/editor.js, frontend/css/lutris.scss), keeping the same output files, or updating the templates if the names change.
Keep the build, build-prod and watch npm scripts working the same way.
Use django-vite only if it brings something concrete (e.g. dev server / HMR); otherwise plain static files are fine.
Drop the unused django-webpack-loader dependency.
Please keep it to the build change only, so it's easy to review and deploy.
django-vite doesn't add much value indeed. So in the end the setup is quite different from what I wanted to take example on 😅 . I'll still try to make a clean PR.
Activity
strycore commentedon Oct 9, 2026
Thanks for the offer! Yes, a PR moving the frontend build to Vite would be welcome.
One thing to know first:
django-webpack-loaderis a leftover. It's pinned inpyproject.tomlbut not used anywhere (not inINSTALLED_APPS, norender_bundlein the templates). The templates load the built files directly fromstatic/(js/lutris.min.js,js/editor.min.js,css/styles.css), and webpack builds them from the three entries inwebpack.common.conf.js.So what we'd like is:
frontend/js/app.js,frontend/js/editor.js,frontend/css/lutris.scss), keeping the same output files, or updating the templates if the names change.build,build-prodandwatchnpm scripts working the same way.django-viteonly if it brings something concrete (e.g. dev server / HMR); otherwise plain static files are fine.django-webpack-loaderdependency.Please keep it to the build change only, so it's easy to review and deploy.
Hugo-C commentedon Oct 18, 2026
django-vitedoesn't add much value indeed. So in the end the setup is quite different from what I wanted to take example on 😅 . I'll still try to make a clean PR.Hugo-C commentedon Nov 9, 2026
Please see #775.