Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anyway to only target certain files for minifying? #5

Closed
t3pfaffe opened this issue Nov 7, 2022 · 1 comment
Closed

Anyway to only target certain files for minifying? #5

t3pfaffe opened this issue Nov 7, 2022 · 1 comment
Assignees

Comments

@t3pfaffe
Copy link

t3pfaffe commented Nov 7, 2022

Would like to be able to specify it only minifying certain files in my assets directory. Is this possible? Maybe as a filter built into the directory parameter since the action seems to just be using the find command?

@devatherock devatherock self-assigned this May 25, 2023
@devatherock
Copy link
Owner

This should now be possible with a config like below:

steps:
  - name: HTML/CSS/JS Minifier
    uses: docker://devatherock/minify-js:3.0.0
    with:
      directory: 'path/to/assets'
      inclusions: |-
        .*scripts.js.*
        .*static/index.html.*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants