如何在项目中实现对静态scss的反应?

问题描述 投票:2回答:1

我正在使用静态react模板,需要实现scss。我的git hub示例:https://github.com/PrasanthGokuldas/Test_ReactStatic.git我试图将react-static-plugin-sass添加到package.json,并包括在static.config.js文件中,

plugins: ['react-static-plugin-sass']

但是我无法访问scss文件进行项目。

我正在使用静态react模板,需要实现scss。我的git hub示例:https://github.com/PrasanthGokuldas/Test_ReactStatic.git我试图将react-static-plugin-sass添加到package.json和...

reactjs ssr react-static
1个回答
0
投票

一旦您使用yarn或npm添加了react-static-plugin-sass,您需要按如下所示将其添加到插件数组的顶部:

© www.soinside.com 2019 - 2024. All rights reserved.