Browse Source

Add `sass` file extension

YuKun Liu 3 years ago
parent
commit
cc56dd19dd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/builder.rs

+ 2 - 2
src/builder.rs

@@ -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()