Skip to content

Updating django-webpack-loader #764

Open

Description

@Hugo-C

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 ?

Activity

  1. strycore commented on Oct 9, 2026

    @strycore
    Member

    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.

  2. Hugo-C commented on Oct 18, 2026

    @Hugo-C
    Author

    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.

  3. Hugo-C commented on Nov 9, 2026

    @Hugo-C
    Author

    Please see #775.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions