You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 6, 2020. It is now read-only.
I have a directory in my project that need to preserve whitespace in it's php files. Other than that directory I would love to be able to send the files through the compactor.
My thought is that this can be done by adding an option to both of the compactors to pass them an exclusion list, and then modifying the "supports($file) method to refer to that. Alternatively a way to load in custom compactors for projects that need it would be great.
The text was updated successfully, but these errors were encountered:
Something I will definitely be supporting in the next version of Box.
In the mean time, see if you can make use of the finder and finder-bin configuration options:
The finder (array) setting is a list of JSON objects. Each object key
is a name, and each value an argument for the methods in the
Symfony\Component\Finder\Finder class. If an array of values is provided
for a single key, the method will be called once per value in the array.
Note that the paths specified for the "in" method are relative to
base-path.
The finder-bin (array) setting performs the same function, except all
files found by the finder will be treated as binary files, leaving them
unmodified.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have a directory in my project that need to preserve whitespace in it's php files. Other than that directory I would love to be able to send the files through the compactor.
My thought is that this can be done by adding an option to both of the compactors to pass them an exclusion list, and then modifying the "supports($file) method to refer to that. Alternatively a way to load in custom compactors for projects that need it would be great.
The text was updated successfully, but these errors were encountered: