Asset minification (#799)

* Minify asset on each build

* Fix style

* Add github action step to install minify

* Remove unnecessary require

* Remove unnecessary lines
This commit is contained in:
Michael
2024-02-19 11:54:09 -03:00
committed by GitHub
parent 01b5e44341
commit 76d2cfac4c
5 changed files with 17 additions and 6 deletions

View File

@@ -33,9 +33,11 @@ To build the website locally, follow these steps:
1. Install [Jekyll prerequisites](https://jekyllrb.com/docs/installation/).
- Make sure `bundle` is available from the command line.
2. Clone this repository.
3. Install the necessary dependencies: `bundle install`.
4. Build the site: `bundle exec jekyll build`.
2. Install [Minify](https://github.com/tdewolff/minify/tree/master/cmd/minify).
- Make sure `minify` is available from the command line.
3. Clone this repository.
4. Install the necessary dependencies: `bundle install`.
5. Build the site: `bundle exec jekyll build`.
- Append `--config _config.yml,_config.development.yml` to use the development config with your build.
For simplicity, these two commands are also available as a `build.sh` script in this repository.