Skip to content

Conversation

dallonf
Copy link

@dallonf dallonf commented Jul 14, 2016

When composing a style from a CSS file in a scoped module, the hook would previously not detect that this was not a relative path due to it starting with @.

A quick trip to StackOverflow later, I think this updated regex will now correctly detect all non-relative paths.

@nordsimon
Copy link

Yes please, merge this. Just ran in to the same problem and found the very same issue

@mightyaleksey mightyaleksey merged commit 67761f0 into css-modules:master Aug 18, 2016
@mightyaleksey
Copy link
Member

mightyaleksey commented Aug 18, 2016

Oh, sorry guys, didn't notice it. Anyways published it in 4.0.2.

Thank you for your effort!

@nordsimon
Copy link

Great, and thank you @dallonf for providing a good solution

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