We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We're using the feature css-loader feature described in webpack-contrib/css-loader#12 (comment) to allow @imports to be resolved "like a module" by prefixing them with ~.
@imports
~
For example:
@import "../../node_modules/normalize.css/normalize.css";
is instead written as:
@import "~normalize.css/normalize.css"
This stops working when using postcss-import. Is there a way to allow this to continue to work?
postcss-import
The text was updated successfully, but these errors were encountered:
postcss-import already handle node_modules. You can do
@import "normalize.css"
This will inline CSS so css-loader won't see any imports after you use this plugin.
Sorry, something went wrong.
Thanks! In our case we are importing specific files so all I needed to do was change:
@import "~foo/bar.css";
to:
@import "foo/bar.css";
No branches or pull requests
We're using the feature css-loader feature described in webpack-contrib/css-loader#12 (comment) to allow
@imports
to be resolved "like a module" by prefixing them with~
.For example:
is instead written as:
This stops working when using
postcss-import
. Is there a way to allow this to continue to work?The text was updated successfully, but these errors were encountered: