Added separator option #24
                
     Open
            
            
          
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
I had one really annoying problem when using
grunt-revtogether withgrunt-contrib-compressand gzip compression.I configured my compress task to change file extensions of gzip compressed files to
.css.gzusing theextoption:Everything fine - almost. Except that
my
59c28e95.test.csswas renamed to59c28e95.css.gzmy
17575a8d.vendor.csswas renamed to17575a8d.css.gzetc.
I know it's probably a "bug" in compress or in the grunt (or even node) file reader/writer/glob but nevertheless I added an optional
separatoroption so you can at least workaround this problem by having your files renamed to59c28e95-test.cssinstead of59c28e95.test.cssfor example (dash instead of dot).Merge it if you like :)
PS: I know I could have just flipped the execution order of the compress and the rev task but it seemed like a more "reliable" way doing it that way ;)