add local generation of Tailwind CSS file (used in prod mode)
This commit is contained in:
@@ -11,7 +11,6 @@ After the point where it reaches feature parity with Venice circa 2006.
|
|||||||
* Build static Tailwind CSS file rather than using remote-loaded version. (Gate on debug/prod flag)
|
* Build static Tailwind CSS file rather than using remote-loaded version. (Gate on debug/prod flag)
|
||||||
* ~~Rate limiter.~~
|
* ~~Rate limiter.~~
|
||||||
* ~~Better logging configuration.~~
|
* ~~Better logging configuration.~~
|
||||||
* Better control of what's cacheable; images should be fine to cache.
|
|
||||||
|
|
||||||
## Immediate Cleanups Required
|
## Immediate Cleanups Required
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,9 @@
|
|||||||
// Package main contains the high-level Amsterdam logic.
|
// Package main contains the high-level Amsterdam logic.
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
// Directive generating the Tailwind CSS file.
|
||||||
|
//go:generate tailwindcss -i ui/styles.css -o ui/static/css/tailwind.css
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* Amsterdam Web Communities System
|
||||||
|
* Copyright (c) 2025-2026 Erbosoft Metaverse Design Solutions, All Rights Reserved
|
||||||
|
*
|
||||||
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||||
|
*/
|
||||||
|
@import "tailwindcss";
|
||||||
|
|
||||||
+1
-2
@@ -21,8 +21,7 @@
|
|||||||
{{ if __debugMode }}
|
{{ if __debugMode }}
|
||||||
<script src="https://cdn.tailwindcss.com"></script>
|
<script src="https://cdn.tailwindcss.com"></script>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{* TODO - replace with reference to generated Tailwind CSS file *}
|
<link rel="stylesheet" href="/static/css/tailwind.css" />
|
||||||
<script src="https://cdn.tailwindcss.com"></script>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<link rel="stylesheet" href="/static/css/ams_style.css" />
|
<link rel="stylesheet" href="/static/css/ams_style.css" />
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Reference in New Issue
Block a user