您好,我是 React JS 中的 MicroFront End 新手。我正在尝试在 React JS 中使用 MicroFront End 来处理 SCSS。我有 2 个文件。
1:_variable.scss 2:样式.scss
下面是我想要在我的应用程序中使用的代码。
//_variable.scss
$base-color: #c6538c;
:export{
baseColor:$base-color;
}
//style.scss
@import url('_variable.scss');
body{
background: $base-color;
}
我正在为应用程序的主体分配一个背景值。但它不起作用。
任何帮助都会很好。
谢谢。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号