Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Sort files #32

Closed
wants to merge 2 commits into from
Closed

Sort files #32

wants to merge 2 commits into from

Conversation

crodas
Copy link
Contributor

@crodas crodas commented Feb 10, 2014

When we have foo.js and bar-foo.js, sometime foo.<hash>.js was replacing bar-foo.js. This PR sorts the files list by their lengths (descending) to fix that.

Before replacing the filenames, sort them by their length (descending). It is useful when we have foo-mobile.js, bar-mobile.js and mobile.js. Without the sorting it was acting unpredictably (sometimes replacing mobile.<hash>.js to foo-mobile.<hash>.js)
@crodas
Copy link
Contributor Author

crodas commented Feb 10, 2014

This PR is broken, I'll send a new one.

@crodas crodas closed this Feb 10, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant