-
-
Notifications
You must be signed in to change notification settings - Fork 609
Resolved https://github.com/webpack/css-loader/issues/102 #183
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
Conversation
urlRequest = url; | ||
return "\" + require(" + loaderUtils.stringifyRequest(this, urlRequest) + ") + \""; | ||
}.bind(this)); | ||
if(!query.hasOwnProperty('import')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't check for exisitance of query properties. Check for the value. query.import !== false
. Document it as css-loader?-url&-import
.
Elsewise this cases would be broken:
css-loader?url
css-loader?{url: true}
Please add test cases that validate the behavior. |
@sokra I've added some tests and fixed checks |
Please merge this! |
3 similar comments
Please merge this! |
Please merge this! |
Please merge this! |
please merge this! |
Instead of spamming |
@sokra This parameter works for url rewriting inside the stylesheet, but it also does not emit the files, can there be a parameter, in which we can specify such requirement |
No description provided.