You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just tried it out, works great. I don't know enough to properly document the feature, but in js I just do
import 'path/to/my.scss'
and inside a scss file I just do @import 'path/to/my.scss'
and for node_module imports: @import '~package/other.css'
EDIT: although there's one thing that's not documented properly - *.module.scss - it relates to both SCSS and CSS modules section of the doc (reference)
Activity
bugzpodder commentedon Apr 21, 2018
Just tried it out, works great. I don't know enough to properly document the feature, but in js I just do
import 'path/to/my.scss'
and inside a scss file I just do
@import 'path/to/my.scss'
and for node_module imports:
@import '~package/other.css'
Timer commentedon Apr 21, 2018
Glad to hear it works for you -- that's what we were going for! 😃 Something that should "just work".
adamwright104 commentedon Apr 23, 2018
This is working for me. followed the install and changed the app.css and index.css to be scss and no styles show
bradfordlemley commentedon Jul 13, 2018
Specifically, adding-a-css-preprocessor-sass-less-etc section in User Guide should be updated.
Note:
node-sass
needs to be included separately in app's devDependencies (intentional, as requested by CRA.)mareksuscak commentedon Sep 27, 2018
This may have been resolved in d7bffca#diff-4e6ec56f74ee42069aac401a4fe448ad
EDIT: although there's one thing that's not documented properly -
*.module.scss
- it relates to both SCSS and CSS modules section of the doc (reference)Timer commentedon Sep 27, 2018
Feel free to send PR update, @mareksuscak!
mareksuscak commentedon Sep 27, 2018
@Timer done and linked to this issue. Here's a preview.