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

Including .css files with @import is non-standard behaviour which will be removed in future versions of LibSass. #14

Open
amery opened this issue Jul 9, 2018 · 1 comment

Comments

@amery
Copy link

amery commented Jul 9, 2018

I had this problem with normalize.css but it also happens with systemize using webpack+sass-loader

@import "systematize";
DEPRECATION WARNING on line 1, column 8 of stdin:
Including .css files with @import is non-standard behaviour which will be removed in future versions of LibSass.
Use a custom importer to maintain this behaviour. Check your implementations documentation on how to create a custom importer.
  • node-sass: 4.9.2
  • sass-loader: 7.0.3
  • webpack 4.15.1

Any suggestion? I'm pretty new on this world.

@mvasilkov
Copy link
Owner

Hi, sorry, I didn't see this issue somehow.

With Webpack, you can use imports relative to the node_modules dir using the following syntax:

@import '~systematize/systematize'

The default file when you import systematize ('main' in package.json) is set to build/systematize.css, hence the warning.

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

2 participants