membershipworks: Fix missing bootstrap CSS in invoice PDFs
This commit is contained in:
parent
6f36a7c8b4
commit
fb005d419f
@ -1,3 +1,3 @@
|
||||
import "bootstrap/scss/bootstrap.scss";
|
||||
import "./bootstrap-css-only.entry.ts";
|
||||
import "bootstrap-icons/font/bootstrap-icons.css";
|
||||
import "bootstrap";
|
||||
|
1
js/bootstrap-css-only.entry.ts
Normal file
1
js/bootstrap-css-only.entry.ts
Normal file
@ -0,0 +1 @@
|
||||
import "bootstrap/scss/bootstrap.scss";
|
@ -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">
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user