Minier is a GitHub Action that minifies JS, CSS, and HTML files using the Minify library. It helps reduce the size of your files, improving website loading times and overall performance. ⚡
| Input | Description | Required |
|---|---|---|
path |
The path to a directory or a single file to minify. | false |
types |
Comma-separated list of file types to minify (e.g., js,css,html). If path is a directory, these types will be minified. |
false |
type |
A single file type to minify (js, css, or html). This takes precedence over types. |
false |
file_list |
Comma-separated list of specific files to minify. This takes precedence over path and types. |
false |
options |
JSON string of options to pass to Minify. See Minify Options for available options. | false |
- uses: actions/checkout@v4
- uses: UsSubDidIt/Minier@main
with:
path: 'src'- uses: actions/checkout@v4
- uses: UsSubDidIt/Minier@main
with:
file_list: 'src/index.js,src/style.css'- uses: actions/checkout@v4
- uses: UsSubDidIt/Minier@main
with:
path: 'src'
options: '{ "js": { "mangle": false } }'npm installnode index.jshttps://github.com/UsSubDidIt/Minier
MIT