Fixed builder problem
This commit is contained in:
1 parent
cc56dd19dd
commit
87e6ed0a3d
1 file changed
+3
-1
+3
-1
@@ -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!(
|
||||
|
||||
Reference in new issue
Block a user