-
Notifications
You must be signed in to change notification settings - Fork 8
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
Allow replacement function to access the relativePath #4
Comments
Hi pal, Mmmm, i make some similar for grunt-replace ... i create special replacement tags it might be work ?? (but only available for grunt, but may can i port that) https://github.com/outaTiME/grunt-replace#built-in-replacements checkout ... |
FYI here is what I've patched:
|
oops, didn't mean to close. Would you like a PR? |
mmm, for example what replaceWithPath function do in your code ?? |
So either the original file contained |
This plugin is just what I need - except part of what I need to replace in my file is the relative path to the file being processed (for a
<script>
tag insertion based on the current directory).Could you provide some config to make this possible?
Note, the processString method
broccoli-replace/index.js
Line 48 in 08be5ed
takes the relativePath as a second parameter, so this doesn't seem too hard to wire up in that location (no change to applause)
The text was updated successfully, but these errors were encountered: