Skip to content
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

Added %d as an extended replacement for directory name #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jtuskan
Copy link

@jtuskan jtuskan commented Sep 7, 2016

This is my first pull request. Hopefully, everything is in line. This change would allow the use of the file's directory name in replacements. It would be helpful for multi-entry applications.

// Replacement based on the file being processed
// Stream contains ['\root\views\map\index.js', '\root\views\home\index.js']
htmlreplace({
  js: {
    src: null,
    tpl: '<script src="%d.%f.bundle.js"></script>'
  }
})
// Outputs: <script src="map.index.bundle.js"></script>, <script src="home.index.bundle.js"></script>

Please let me know if I can improve my request.
Best regards,
Joe

@coveralls
Copy link

coveralls commented Sep 7, 2016

Coverage Status

Coverage decreased (-0.6%) to 97.484% when pulling 00b7a9e on jtuskan:master into 38e66fd on VFK:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants