nizarmah / auto-minify

Minifies JS and CSS files in GitHub workflows.
GNU General Public License v3.0
48 stars 18 forks source link

Adds exclude_directories input #25

Open alexmigf opened 2 years ago

alexmigf commented 2 years ago

Currently there is not way to exclude specific directories from minification. This PR addresses this issue by adding a new input called exclude_directories which is relative to the directory input. If using more than 1 directory, they should be separated by semicolon.

Example using 1 directory

- name: Auto Minify
        uses: alexmigf/auto-minify@exclude-dirs
        with:
          directory: 'assets'
          exclude_directories: 'js/pdf_js'

Example using 2 directories

- name: Auto Minify
        uses: alexmigf/auto-minify@exclude-dirs
        with:
          directory: 'assets'
          exclude_directories: 'js/pdf_js;js/test'
nizarmah commented 6 months ago

Hello @alexmigf. I'm sorry for never responding to your pull request.

Thank you for putting the effort into adding this feature and documenting it.

I'll review this in the next 48 hours.