aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2023-06-01 10:45:47 -0500
committerChristian Cleberg <hello@cleberg.net>2023-06-01 10:45:47 -0500
commit08a5a5cb7022ba350df3de3ca5cd8c9d9467baad (patch)
tree52bd16513f8fa733fd30322b17b77856065030d0 /README.md
parent5c33255b6ad3906c5c4487f29b04283d84275aaf (diff)
downloadhn-08a5a5cb7022ba350df3de3ca5cd8c9d9467baad.tar.gz
hn-08a5a5cb7022ba350df3de3ca5cd8c9d9467baad.tar.bz2
hn-08a5a5cb7022ba350df3de3ca5cd8c9d9467baad.zip
enhancement: add CSS and minification
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/README.md b/README.md
index 7d24b7e..54bf1d8 100644
--- a/README.md
+++ b/README.md
@@ -13,13 +13,14 @@ how to deploy the project on a live system.
- A web server (e.g., Nginx or Apache)
- PHP
+- Optional: [minify](https://github.com/tdewolff/minify/tree/master/cmd/minify)
### Installing
Install the dependencies, using the web server of your choice:
```
-sudo apt install nginx-full php
+sudo apt install nginx-full php minify
```
Clone the repo:
@@ -28,6 +29,13 @@ Clone the repo:
git clone https://git.sr.ht/~cmc/hn/
```
+If you need to minify CSS changes:
+
+```
+# executed in the top-level `hn` dir
+minify -o static/styles.min.css static/styles.css
+```
+
## Deployment
Deployment is as easy as copying the code to your webroot. No special packages