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

Ignore root-relative URLs unless root query param is defined #11

Closed
wants to merge 3 commits into from

Conversation

lettertwo
Copy link
Contributor

This PR complements another on webpack-contrib/html-loader#8

Any urls that are 'root-relative' absolute (i.e., start with a '/') are not translated at all, unless a root query param is defined. When that param is present, then the root is prepended to the url before it is translated into a require().

When a `root` query param is defined, its value is prepended to any
root-relative urls, which are translated into a require()
sokra added a commit that referenced this pull request Mar 31, 2014
@sokra sokra closed this in 1a5f165 Mar 31, 2014
@lettertwo lettertwo deleted the root-relative branch March 31, 2014 15:21
koistya pushed a commit to koistya/css-loader that referenced this pull request Nov 19, 2015
it now bubbles when the css failed
fixes webpack-contrib#11
fixes webpack-contrib#12
fixes webpack-contrib#13
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.

1 participant