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

JS modules can be imported and executed from CSS #462

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

JS modules can be imported and executed from CSS #462

darrenscerri opened this issue Mar 22, 2017 · 3 comments

Comments

@darrenscerri
Copy link

darrenscerri commented Mar 22, 2017

Do you want to request a feature or report a bug?

Bug

What is the current behavior?
Although this might be intended, it might not be correct to require certain files such as Javascript files from CSS.

If the current behavior is a bug, please provide the steps to reproduce.
See this repo for more information: https://github.com/darrenscerri/webpack-extract-text-plugin-empty-require-error.

Related issues:
webpack/webpack#4541
webpack-contrib/extract-text-webpack-plugin#465

@alexander-akait
Copy link
Member

@darrenscerri Problem still exists?

@alexander-akait
Copy link
Member

Confirm.
Input:

a {
  background-image: url("");
}

Output:

a {
  background-image: url("https://example.com/");
}

@alexander-akait
Copy link
Member

alexander-akait commented Feb 15, 2018

Not related to css-loader. Information:

  1. style-loader PR fix(urls): skip empty url() handling style-loader#304
  2. Other bug in cssnano, he is rewrite url("") => url(.). Issue: Maybe bug with empty url cssnano/cssnano#444

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants