markstory / mini-asset

A simple set of asset build tools that provides a config file and extensible integrations with pre-processors & minifiers.
MIT License
64 stars 17 forks source link

Custom (app level) filters #65

Open dereuromark opened 3 years ago

dereuromark commented 3 years ago

How can you define a custom filter, e.g. in your project and add it to the stack? I didn't see any config on this customization in the readme.

markstory commented 3 years ago

Not right now. All the filters need to be from within this library's namespace. Supporting filters from elsewhere seems reasonable as long as they implement the FilterInterface.

dereuromark commented 3 years ago

I was thinking about https://github.com/markstory/asset_compress/issues/234#issuecomment-732977206 and having a custom filter that removes the map comments.