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

url('') is rewritten as require('./') #463

Closed
darrenscerri opened this issue Mar 22, 2017 · 3 comments
Closed

url('') is rewritten as require('./') #463

darrenscerri opened this issue Mar 22, 2017 · 3 comments

Comments

@darrenscerri
Copy link

What is the current behavior?
url('') is rewritten as require('./')

If the current behavior is a bug, please provide the steps to reproduce.
Simply specify a url('') rule in CSS.

What is the expected behavior?
url('') should not be allowed. Show a warning similar to webpack/webpack#2006

@alexander-akait
Copy link
Member

/cc @michael-ciniawsky what do you think about ignore empty url by default?

@michael-ciniawsky
Copy link
Member

Yep, also@ìmport/url() with protocol schema https://, but we need to clearify if that breaks current useage somehow (don't think so, but how knows for sure 😛)

alexander-akait pushed a commit to alexander-akait/css-loader that referenced this issue Apr 23, 2017
alexander-akait pushed a commit to alexander-akait/css-loader that referenced this issue Apr 23, 2017
alexander-akait pushed a commit to alexander-akait/css-loader that referenced this issue Apr 26, 2017
@alexander-akait
Copy link
Member

Done in #513

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

No branches or pull requests

3 participants