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

Add [folder] token to interpolateName #27

Merged
merged 11 commits into from
Apr 9, 2016
Merged

Conversation

joshhunt
Copy link
Contributor

@joshhunt joshhunt commented Mar 9, 2016

#11 appears to be abandoned so I took another crack at it - this time with tests!

I noticed @mrm007 did some work (in #26) on writing tests for interpolateName, so I merged that in to extend from that. I would recommend his PR is merged before this one - once it is the diff here will more accurately show the work that I've done myself.

Let me know if you have any feedback!

@joshhunt
Copy link
Contributor Author

@sokra Eager to get your feedback on this! I wasn't sure of the approach to take - I pondered doing path.dirname(path.basename(loaderContext.resourcePath)) for a bit, but ultimately settled on what I've committed here.

@sokra
Copy link
Member

sokra commented Mar 14, 2016

Looks good, but I don't have time this week to merge it... Next week.

@joshhunt
Copy link
Contributor Author

@sokra Eagerly awaiting any updates you might have for this 😄

@sokra sokra merged commit 1b5ecb4 into webpack:master Apr 9, 2016
@sokra
Copy link
Member

sokra commented Apr 9, 2016

Thanks. Sorry for waiting so long. I was too busy.

@joshhunt
Copy link
Contributor Author

joshhunt commented Apr 9, 2016

Awesome thanks for merging it in. 💃🏻🎉

Can't wait for it to be published! 👏🏼

@haustraliaer
Copy link

Thank you @joshhunt! I am admittedly a terrible open source developer and never did get round to doing tests for this... but I look forward to using it now!

@mrm007
Copy link
Contributor

mrm007 commented Apr 10, 2016

Haha good hustle @joshhunt!

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

4 participants