Fixed builder problem

This commit is contained in:
YuKun Liu committed 2022-05-12 22:49:27 +08:00
1 parent cc56dd19dd
commit 87e6ed0a3d
1 file changed
+3 -1
+3 -1
View File
@@ -398,7 +398,9 @@ fn build_assets(config: &CrateConfig) -> Result<Vec<PathBuf>> {
{
let temp = entry.path();
if temp.is_file() {
let suffix = temp.extension().unwrap().to_str().unwrap();
let suffix = temp.extension();
if suffix.is_none() { continue; }
let suffix = suffix.unwrap().to_str().unwrap();
if suffix == "scss" || suffix == "sass" {
// if file suffix is `scss` / `sass` we need transform it.
let out_file = format!(