membershipworks: Fix missing bootstrap CSS in invoice PDFs
Some checks failed
Ruff / ruff (push) Successful in 30s
Test / test (push) Failing after 2m29s

This commit is contained in:
Adam Goldsmith 2024-07-24 20:01:27 -04:00
parent 6f36a7c8b4
commit fb005d419f
4 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,3 @@
import "bootstrap/scss/bootstrap.scss";
import "./bootstrap-css-only.entry.ts";
import "bootstrap-icons/font/bootstrap-icons.css";
import "bootstrap";

View File

@ -0,0 +1 @@
import "bootstrap/scss/bootstrap.scss";

View File

@ -1,13 +1,13 @@
{% load static %}
{% load nh3_tags %}
{% load django_vite %}
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link href="{% static 'bootstrap.min.css' %}" rel="stylesheet">
{% vite_asset 'js/bootstrap-css-only.entry.ts' %}
<link rel="stylesheet" href="{% static "membershipworks/css/event_invoice_pdf.css" %}" media="print">
{% if preview %}
<link rel="stylesheet" href="{% static "membershipworks/css/event_invoice_pdf_preview.css" %}" media="print">

View File

@ -6,6 +6,7 @@ const entry_points = globbySync("*/js/*.entry.ts", { gitignore: true });
const inputs = {
base: "./js/base.entry.ts",
"bootstrap-css-only": "./js/bootstrap-css-only.entry.ts",
};
for (const entry of entry_points) {