-
Notifications
You must be signed in to change notification settings - Fork 18
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
Handling nested directories #1
Comments
Hello! Thank you for using this Action ( : The goal is to use Give me some time (about 10 mins), and I will update you on whether it works or not. |
Alright, so according to this commit, it seems like the library does not support any This has become an issue now / bug report However, I do understand how inefficient it would be to go through the following directories:
So, I have 3 solutions that I am thinking of, and they are: I believe the most logical would be the first approach. Then the directory could be treated similarly to how the It shouldn't be difficult to apply that solution, it is just a matter of pipelining the output of one to the other. I'll keep you updated ( : |
… Other with Correct Output Forwarding The needed files to be minified are now found using *find* in bash. Output is *grepped* to avoid minified files. Then we get the output path, name, file extension of the output file, and run the npm script on the files. The new approach fixes the bug represented in issue #1. In addition, there is a commit referenced in that issue to a failed workflow for that commit This refactor fixes issue #1, makes the code cleaner, and more modular
This tests the solution created for this [issue](nizarmah/auto-minify#1)
… Other with Correct Output Forwarding The needed files to be minified are now found using *find* in bash. Output is *grepped* to avoid minified files. Then we get the output path, name, file extension of the output file, and run the npm script on the files. The new approach fixes the bug represented in issue #1. In addition, there is a commit referenced in that issue to a failed workflow for that commit This refactor fixes issue #1, makes the code cleaner, and more modular
…Directories Feature This tests the solution created for [handling multiple directories](nizarmah/auto-minify#1)
Alright, so fixed it finally 🎉 Click here to go to the test branch where I tested it out. It finally works. So, all you have to do now is just specify:
Make sure to update your action to v1.4 This works for both CSS and JS.
Thanks a lot for your issue by the way ( : Let me know if there's anything else you need, feel free to open a new issue : ) |
Thank you for making this! How do you recommend handling multiple directories? For example if I have:
Can I do something like
directory: 'js/*'
?The text was updated successfully, but these errors were encountered: