Add sass file extension

This commit is contained in:
YuKun Liu committed 2022-05-12 00:11:51 +08:00
1 parent 7f829c4553
commit cc56dd19dd
1 file changed
+2 -2
+2 -2
View File
@@ -399,8 +399,8 @@ fn build_assets(config: &CrateConfig) -> Result<Vec<PathBuf>> {
let temp = entry.path();
if temp.is_file() {
let suffix = temp.extension().unwrap().to_str().unwrap();
if suffix == "scss" {
// if file suffix is `scss` we need transform it.
if suffix == "scss" || suffix == "sass" {
// if file suffix is `scss` / `sass` we need transform it.
let out_file = format!(
"{}.css",
temp.file_stem().unwrap().to_str().unwrap()