I do not know what exact tutorial you are looking at. Also, I am not so experienced at the front-end, but in my opinion, using Sass as a css-preprocessor isn't the best option on production for now.
But, since you are asking how to implement sass
, I'll describe a procedure, like you are using React with npx create-react-app
.
First, you were right, about using dart-sass
over sass
. This command should help you with that: npm install --save-dev sass
. According to the question, seems you already tried that.
After that, add new script to your scripts
in your package.json
file: "sass" : "sass src/Sass:src/Css --watch --no-source-map"
and you are done.
In my own opinion, I prefer to implement it via npm
instead of VSC plugin. It will more stable after all. But if you are using it, for test/study purposes, I think, you could try both.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…