Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrmcc3/boot-gzip
Boot task for gzipping
https://github.com/mrmcc3/boot-gzip
Last synced: 25 days ago
JSON representation
Boot task for gzipping
- Host: GitHub
- URL: https://github.com/mrmcc3/boot-gzip
- Owner: mrmcc3
- Created: 2015-09-06T12:24:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-06T13:08:31.000Z (over 9 years ago)
- Last Synced: 2024-12-13T21:11:42.041Z (28 days ago)
- Language: Clojure
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# boot-gzip
Boot task for gzip-ing files.
```clj
[mrmcc3/boot-gzip "0.1.0-SNAPSHOT"]
```### Usage
in build.boot
```clj
(set-env! :dependencies '[[mrmcc3/boot-gzip "0.1.0-SNAPSHOT"]])
(require '[mrmcc3.boot-gzip :refer [gzip]])
```set the files you want to gzip
```clj
(task-options! gzip {:files #{#"^.*\.(js|css|html)$"}})
```the gzip task does not rename files it adds `:gzip true` metadata instead.
### LICENSE
Copyright © 2015 Michael McClintock
Distributed under the Eclipse Public License, the same as Clojure.