-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move away from node-sass and update documentation related to it #10045
Comments
Dart Sass has additional syntax that node-sass doesn't support, meaning that CRA can't build some Sass projects. I've seen this at work on some projects. |
@nhevia Yep it may well be fixed by that change in |
Hi all - not yet a regular contributor to open source projects so apologies if there are conventions I'm missing. As is, the docs on adding sass to CRA are wrong and produce an error. This will no doubt be fixed in the future, but in the mean time would it make sense to update docs to provide an accurate solution? For example, using If that solution would work, I'd be happy to submit a pull request with updated language in the docs with the line above, along with an explanation as to why. |
@ianschmitz cool! Nicely done and thank you! When can i expect this to rollout? When is the next publish due? :) |
This is the first result that appeared in google when searching for why the official docs were advising to use I see that #10779 updated the docs, but 3 months later this is still not updated at the production docs site? Not sure who to ping about resolving that. |
Thanks for this, following the updated guide from #10779 (using |
Probably needs a new issue to get any attention I guess, but also there's this issue about the future of CRA. I think we'll see the migration to Webpack 5 and PostCSS 8, but after that it might just be in maintenance mode, doesn't appear to be a priority for facebook anymore. When that release happens I suppose the docs in master will get published along with it. |
Well, then technically this issue isn't resolved if you want to be picky about it. Not sure if this should be re-opened or if a new issue should be created because I am kind of waiting for official docs for this as well. |
Just wanted to throw this out there. We switched from
|
Is there a way to use the much faster Dart VM rather than the JavaScript implementation with CRA? or is there a better way to speed things up at build time around Sass files? I'm seeing 500 and 600 + second runs after switching from |
Is your proposal related to a problem?
LibSass and Node-Sass is deprecated :https://sass-lang.com/blog/libsass-is-deprecated
create-react-app-page is recommending to use it: https://create-react-app.dev/docs/adding-a-sass-stylesheet/
Describe the solution you'd like
I think it should be clear that node-sass is deprecated in the wiki/documentation or it should be updated to reflect packages that aren't.
Describe alternatives you've considered
People i work with suggest migrating to Dart Sass, but i want to make sure that it's fully supported by react-scripts before we migrate to anything.
Additional context
I realize there is an old issue describing how to migrate (#5282) but it doesn't say what is actually preferred as a replacement.
The text was updated successfully, but these errors were encountered: