Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update frontend build tooling to node 20 #10

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jlchilders11
Copy link

@jlchilders11 jlchilders11 commented Mar 7, 2024

Simplify the build system using vite instead of webpack, remove django-webpack-loader and a slew of other dev tooling since the front-end consists of just two files.

@vsalvino vsalvino changed the title Change build to use vite, render static without webpack Update frontend build tooling to node 20 Mar 7, 2024
@@ -1,15 +1,14 @@
{% extends 'base.html' %}
{% load wagtailcore_tags %}
{% load render_bundle webpack_static from webpack_loader %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably makes the filename unique by adding a hash. Great for setting long-time cache headers, yet still 'invalidate' the browser cache by supplying a new filename.

You'd might consider something similar. Have a look at https://pypi.org/project/django-manifest-loader/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants