Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minier 🚀

Node.js Minify

Description

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. ⚡

Inputs

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

Usage

Basic Example (Minify all JS, CSS, and HTML files in a directory)

- uses: actions/checkout@v4
- uses: UsSubDidIt/Minier@main
  with:
    path: 'src'

Example (Minify specific files)

- uses: actions/checkout@v4
- uses: UsSubDidIt/Minier@main
  with:
    file_list: 'src/index.js,src/style.css'

Example (Minify with options)

- uses: actions/checkout@v4
- uses: UsSubDidIt/Minier@main
  with:
    path: 'src'
    options: '{ "js": { "mangle": false } }'

Installation (For Local Development)

npm install

Run Locally

node index.js

Repository

https://github.com/UsSubDidIt/Minier

License

MIT

About

A GitHub Action to minify JS, CSS, and HTML files using Minify.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages