improve handling of directory load paths
This commit is contained in:
parent
34fed92bdf
commit
45f2769c3c
@ -64,10 +64,14 @@ impl<'a, 'b> Parser<'a, 'b> {
|
|||||||
for path in &self.options.load_paths {
|
for path in &self.options.load_paths {
|
||||||
let paths: Vec<PathBuf> = if path.is_dir() {
|
let paths: Vec<PathBuf> = if path.is_dir() {
|
||||||
vec![
|
vec![
|
||||||
path.join(format!("{}.scss", name.to_str().unwrap())),
|
path.join(&path_buf)
|
||||||
path.join(format!("_{}.scss", name.to_str().unwrap())),
|
.with_file_name(name)
|
||||||
path.join("index.scss"),
|
.with_extension("scss"),
|
||||||
path.join("_index.scss"),
|
path.join(&path_buf)
|
||||||
|
.with_file_name(format!("_{}", name.to_str().unwrap()))
|
||||||
|
.with_extension("scss"),
|
||||||
|
path.join(&path_buf).join("index.scss"),
|
||||||
|
path.join(&path_buf).join("_index.scss"),
|
||||||
]
|
]
|
||||||
} else {
|
} else {
|
||||||
vec![
|
vec![
|
||||||
|
Loading…
x
Reference in New Issue
Block a user