W
W
webe2018-09-29 22:09:19
React
webe, 2018-09-29 22:09:19

How to add CSS modules and SCSS to CRA?

When I insisted, it was like this:
loaders: [
'style-loader',
'css-loader?modules&importLoaders=1&localIdentName=[path]___[name]__[local]___[hash:base64:5]',
' sass-loader'
]
but how to do it in CRA?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AlexKindGeek, 2018-09-29
@webe

Everything is in the CRA documentation
By Scss / Sass
CSS modules
Or, as uiworks noted , do npm run eject and scam webpack config
Detailed tutorial via eject

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question