This repository has been archived by the owner on Mar 26, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
Replace doesn't work when using expand: true #20
Labels
Comments
Closed
works like a charm! a big thank you to airtonix! |
In there are folks like me who is waiting for this, here is workaround: Instead of this: filerev:
dist:
expand: true
src: [
"<%= yeoman.dist %>/scripts/{,**/}*.js"
"<%= yeoman.dist %>/styles/{,*/}*.css"
"<%= yeoman.dist %>/images/{,*/}*.{png,jpg,jpeg,gif,webp}"
"<%= yeoman.dist %>/fonts/*"
] you can do this: filerev:
scripts: src: "<%= yeoman.dist %>/scripts/{,**/}*.js"
styles: src: "<%= yeoman.dist %>/styles/{,*/}*.css"
images: src: "<%= yeoman.dist %>/images/{,*/}*.{png,jpg,jpeg,gif,webp}"
fonts: src: "<%= yeoman.dist %>/fonts/*" |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
So this is my config:
Unfortunately, leaving out the
dest
doesn't trigger the 'replace' behavior and also places all my output files in the root of my project.Do you think you could add the option to explicitly enable replacement?
The text was updated successfully, but these errors were encountered: