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
I build a small demo based on CRA, yet I encountered a problem where some sass features can't work, like @use "sass.string" and some other built-in modules.
At first I am using node-sass recommended by CRA documentation.
After trying different solutions and reviewing github issues, I found a very efficient way.
As mentioned in #10045, I think we should update the CRA documentation to use sass as the default module, if there are no issues migrating from node-sass. It seems like it shouldn't be a problem, since they use the same API. I also agree that we should add a note on how to migrate a project from node-sass to sass.
I can take this on if we go forward with this proposal. :)
Is your proposal related to a problem?
I build a small demo based on CRA, yet I encountered a problem where some sass features can't work, like
@use "sass.string"
and some other built-in modules.At first I am using
node-sass
recommended by CRA documentation.After trying different solutions and reviewing github issues, I found a very efficient way.
配合CRA搭建demo看sass官网文档时发现有些特性不支持,把create-react-app官方文档推荐的
node-sass
换成sass
就ok了。Describe the solution you'd like
If you want use new features of sass, please remove
node-sass
module in your CRA project and usesass
instead.Additional context
Hope CRA documentation would change it or at least append a tip.
The text was updated successfully, but these errors were encountered: