【发布时间】:2019-03-28 20:43:18
【问题描述】:
我正在尝试将 SASS 与 REACT 一起使用
虚拟 GITHUB : https://github.com/bansalvks/react-poc-collection/tree/master/scss-with-react
我面临的问题是源地图不起作用。
我正在使用node-sass-chokidar 并使用以下脚本运行该实用程序
node-sass-chokidar --include-path ./node_modules/ ./src -o ./src --output-style=expanded --source-map=true --source-map-root=true --watch
正如您在下面的屏幕截图中看到的,文件没有出现
【问题讨论】:
-
这与 react-create-app 相同,所以我不认为您在设置中做错了什么
-
无法弄清楚为什么它不起作用
标签: javascript html css reactjs sass