catcombo / go-staticfiles

Collects assets (css, js, images...) from a different locations and tags file names with a hash for easy versioning and aggressive caching.
MIT License
14 stars 2 forks source link

How to exclude some files/folder? #7

Closed frederikhors closed 5 years ago

frederikhors commented 5 years ago

Is there already a way to exclude some files/folder?

catcombo commented 5 years ago

I think the best option is to move unexported assets to a separate directory (e.g. static/public and static/private).

frederikhors commented 5 years ago

Oh no, please no.

Can we use in someway a glob utility?

catcombo commented 5 years ago

Ok, I'll think how to implement it.

catcombo commented 5 years ago

@frederikhors check the PR and tell what you think about it please.

frederikhors commented 5 years ago

It looks good to me.

catcombo commented 5 years ago

Good! Released in v0.4.0.