Answer the question
In order to leave comments, you need to log in
Why is webpack tripping over @import google fonts (scss)?
Actually, the error itself:
ERROR in ./~/css-loader!./~/sass-loader!./src/assets/scss/main.scss
Module build failed: Unexpected format https://fonts.googleapis.com/css?family=Roboto:100,200,300,400&subset=cyrillic (1:1)
> 1 | @import https://fonts.googleapis.com/css?family=Roboto:100,200,300,400&subset=cyrillic;
webpack
responsible for sass
:module: {
loaders: [
{
test: /\.scss/,
loader: "style!css!sass"
}
]
}
url
? ( sass
by itself, it compiles the whole thing quite normally)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question