Vendor Tailwind via the standalone CLI; drop the Play CDN
Tailwind is now compiled from static/css/input.css into a committed static/css/tailwind.css by the standalone CLI, fetched on demand into bin/ (gitignored) so no Node toolchain is required. layout.templ loads the local stylesheet instead of cdn.tailwindcss.com. Adds a Makefile with generate/css/build/run/test/clean targets. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
13
tailwind.config.js
Normal file
13
tailwind.config.js
Normal file
@@ -0,0 +1,13 @@
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
// Scans the .templ sources for utility classes. Custom v-* component classes
|
||||
// live in static/css/app.css, not here, so they need no safelisting. If a
|
||||
// utility class is ever built dynamically in Go rather than written as a
|
||||
// literal in a template, add it to `safelist` below.
|
||||
module.exports = {
|
||||
content: ["./templates/**/*.templ"],
|
||||
safelist: [],
|
||||
theme: {
|
||||
extend: {},
|
||||
},
|
||||
plugins: [],
|
||||
};
|
||||
Reference in New Issue
Block a user