Add sass file extension
This commit is contained in:
1 parent
7f829c4553
commit
cc56dd19dd
1 file changed
+2
-2
+2
-2
@@ -399,8 +399,8 @@ fn build_assets(config: &CrateConfig) -> Result<Vec<PathBuf>> {
|
|||||||
let temp = entry.path();
|
let temp = entry.path();
|
||||||
if temp.is_file() {
|
if temp.is_file() {
|
||||||
let suffix = temp.extension().unwrap().to_str().unwrap();
|
let suffix = temp.extension().unwrap().to_str().unwrap();
|
||||||
if suffix == "scss" {
|
if suffix == "scss" || suffix == "sass" {
|
||||||
// if file suffix is `scss` we need transform it.
|
// if file suffix is `scss` / `sass` we need transform it.
|
||||||
let out_file = format!(
|
let out_file = format!(
|
||||||
"{}.css",
|
"{}.css",
|
||||||
temp.file_stem().unwrap().to_str().unwrap()
|
temp.file_stem().unwrap().to_str().unwrap()
|
||||||
|
|||||||
Reference in new issue
Block a user