Fixed some problem
This commit is contained in:
1 parent
ecb846dd24
commit
bf49d526d7
2 files changed
+13
-2
No files matched your search
+12
-1
@@ -409,7 +409,13 @@ fn build_assets(config: &CrateConfig) -> Result<()> {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// just transform one file.
|
// just transform one file.
|
||||||
let path = config.asset_dir.join(file);
|
let path = if &file[0..] == "/" {
|
||||||
|
&file[1..file.len() - 1]
|
||||||
|
} else {
|
||||||
|
file
|
||||||
|
};
|
||||||
|
let path = PathBuf::from(path);
|
||||||
|
let path = config.asset_dir.join(path);
|
||||||
if path.is_file() {
|
if path.is_file() {
|
||||||
sass.call(
|
sass.call(
|
||||||
"sass",
|
"sass",
|
||||||
@@ -434,6 +440,11 @@ fn build_assets(config: &CrateConfig) -> Result<()> {
|
|||||||
for i in list {
|
for i in list {
|
||||||
if i.is_str() {
|
if i.is_str() {
|
||||||
let path = i.as_str().unwrap();
|
let path = i.as_str().unwrap();
|
||||||
|
let path = if &path[0..] == "/" {
|
||||||
|
&path[1..path.len() - 1]
|
||||||
|
} else {
|
||||||
|
path
|
||||||
|
};
|
||||||
let path = PathBuf::from(path);
|
let path = PathBuf::from(path);
|
||||||
let path = config.asset_dir.join(path);
|
let path = config.asset_dir.join(path);
|
||||||
if path.is_file() {
|
if path.is_file() {
|
||||||
|
|||||||
+1
-1
@@ -207,7 +207,7 @@ impl Tool {
|
|||||||
} else {
|
} else {
|
||||||
command.to_string()
|
command.to_string()
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if !bin_path.join(&command_file).is_file() {
|
if !bin_path.join(&command_file).is_file() {
|
||||||
|
|||||||
Reference in new issue
Block a user