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
Using the following webpack configuration:
module: { loaders: [ { test: /\.scss$/, loaders: ['style', 'css', 'autoprefixer?browsers=last 2 version', 'sass'], include: PATHS.styles } ] },
If I try to import a CSS file from a CDN URL in one of my SASS files, like so: @import "https://code.getmdl.io/1.1.3/material.indigo-pink.min.css";
@import "https://code.getmdl.io/1.1.3/material.indigo-pink.min.css";
I get the following error:
ERROR in ./~/css-loader!./~/autoprefixer-loader?browsers=last 2 version!./~/sass-loader!./app/styles/components/app.scss Module build failed: CssSyntaxError: css-loader-parser: Z:\css-loader!Z:\_projects\canal-9\canal9_webapp\node_modules\autoprefixer-loader\index.js?browsers=last 2 version!Z:\_projects\canal-9\canal9_webapp\node_modules\sass-loader\index.js!Z:\_projects\canal-9\canal9_webapp\app\styles\components\app.scss:1:1: Unexpected formathttps://code.getmdl.io/1.1.3/material.indigo-pink.min.css @import https://code.getmdl.io/1.1.3/material.indigo-pink.min.css;
Any idea what I'm doing wrong here?
The text was updated successfully, but these errors were encountered:
F*ck me, I've just forgot the url() part:
url()
@import url("https://code.getmdl.io/1.1.3/material.indigo-pink.min.css");
works fine
Sorry, something went wrong.
No branches or pull requests
Using the following webpack configuration:
If I try to import a CSS file from a CDN URL in one of my SASS files, like so:
@import "https://code.getmdl.io/1.1.3/material.indigo-pink.min.css";
I get the following error:
Any idea what I'm doing wrong here?
The text was updated successfully, but these errors were encountered: