V
V
Viktor Novikov2016-09-27 15:41:40
Sass
Viktor Novikov, 2016-09-27 15:41:40

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;

Part of the config webpackresponsible for sass:
module: {
    loaders: [
      {
        test: /\.scss/,
        loader: "style!css!sass"
      }
    ]
  }

Sobsno... I just can't figure out how to make him import styles according to the given one url? ( sassby itself, it compiles the whole thing quite normally)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2016-09-27
@YourDesire

https://github.com/sass/libsass/issues/289#issueco...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question