A
A
AlexKindGeek2018-07-07 21:58:12
JavaScript
AlexKindGeek, 2018-07-07 21:58:12

How to set up Sass in CRA?

Hello. I want to connect sass to the project, but it doesn't work.
In webpack I added the following. settings

{
            test: /\.sass$/,
            include: paths.appSrc,
            loaders: ["style", "css", "sass"]
}

exclude: [/\.(js|jsx|mjs)$/, /\.html$/, /\.json$/, /\.sass$/],

And in index.js I want to import './sass/index.sass', but it says to me can't resolve 'style'
5b410d40b3409309963736.png
Here is my config in detail:
https://codesandbox.io/s/4jxm68z5o7
Thanks for the answers.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan, 2018-07-07
@AlexKindGeek

https://github.com/facebook/create-react-app/blob/...
No need to collective farm, you need to read the docs)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question