-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overwrite option not working? #37
Comments
I'm pretty sure I can confirm this by looking at the source. The only place the |
Same here, the overwrite: true option gives an error: |
@ryexley @okcompewter you've probably moved on by now but I figured I would share my results anyways. You can overwrite the target files by only including the "style-image-refs": {
src: ["app/assets/stylesheets/**/*.css"],
replacements: [
{ from: "url(\"/images/", to: "url(\"/assets/" },
{ from: "url(\"../images/", to: "url(\"/assets/" }
]
} |
Use grunt-string-replace |
I have the following configuration:
to replace image URL paths in CSS files. The
overwrite
attribute seems to be causing the replace functionality to break. If I modify the configuration to write the target files to a different directory, like this:the files get written to the
fixed
directory, and the target strings are replaced as expected. But when I use theoverwrite
attribute it doesn't work.Anyone else experiencing this? Is my configuration setup wrong or something? Any help would be greatly appreciated.
Thanks.
The text was updated successfully, but these errors were encountered: