Dahlia 默认支持 Sass,你不需要额外配置什么,类似导入 CSS 文件一样导入即可。
Dahlia
button.scss
.error { background-color: red; }
Button.js
import React from 'react' import './button.scss' const Button = () => <button>Error Button</button>
Last updated 6 years ago
Was this helpful?