From 08a5a5cb7022ba350df3de3ca5cd8c9d9467baad Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Thu, 1 Jun 2023 10:45:47 -0500 Subject: enhancement: add CSS and minification --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'README.md') 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 -- cgit v1.2.3-70-g09d2