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)
|
||||
* ~~Rate limiter.~~
|
||||
* ~~Better logging configuration.~~
|
||||
* Better control of what's cacheable; images should be fine to cache.
|
||||
|
||||
## Immediate Cleanups Required
|
||||
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
// Package main contains the high-level Amsterdam logic.
|
||||
package main
|
||||
|
||||
// Directive generating the Tailwind CSS file.
|
||||
//go:generate tailwindcss -i ui/styles.css -o ui/static/css/tailwind.css
|
||||
|
||||
import (
|
||||
"context"
|
||||
"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 }}
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
{{ else }}
|
||||
{* TODO - replace with reference to generated Tailwind CSS file *}
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<link rel="stylesheet" href="/static/css/tailwind.css" />
|
||||
{{ end }}
|
||||
<link rel="stylesheet" href="/static/css/ams_style.css" />
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user