Rename files to input
This commit is contained in:
1 parent
9ddaa773d9
commit
ecb846dd24
2 files changed
+11
-11
No files matched your search
@@ -48,13 +48,13 @@ binaryen = { wasm_opt = true }
|
|||||||
[application.tools.sass]
|
[application.tools.sass]
|
||||||
|
|
||||||
# auto will check the assets dirs, and auto to transform all scss file to css file.
|
# auto will check the assets dirs, and auto to transform all scss file to css file.
|
||||||
auto = true
|
input = "*"
|
||||||
|
|
||||||
# or you can specify some scss file -> css file
|
# or you can specify some scss file -> css file
|
||||||
files = [
|
# input = [
|
||||||
# some sass file path
|
# # some sass file path
|
||||||
# this file will translate to `/css/test.css`
|
# # this file will translate to `/css/test.css`
|
||||||
"/css/test.scss"
|
# "/css/test.scss"
|
||||||
]
|
# ]
|
||||||
|
|
||||||
source_map = true
|
source_map = true
|
||||||
+5
-5
@@ -365,9 +365,9 @@ fn build_assets(config: &CrateConfig) -> Result<()> {
|
|||||||
"--source-map"
|
"--source-map"
|
||||||
};
|
};
|
||||||
|
|
||||||
if tab.contains_key("files") {
|
if tab.contains_key("input") {
|
||||||
if tab.get("files").unwrap().is_str() {
|
if tab.get("input").unwrap().is_str() {
|
||||||
let file = tab.get("files").unwrap().as_str().unwrap().trim();
|
let file = tab.get("input").unwrap().as_str().unwrap().trim();
|
||||||
|
|
||||||
if file == "*" {
|
if file == "*" {
|
||||||
// if the sass open auto, we need auto-check the assets dir.
|
// if the sass open auto, we need auto-check the assets dir.
|
||||||
@@ -428,9 +428,9 @@ fn build_assets(config: &CrateConfig) -> Result<()> {
|
|||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if tab.get("files").unwrap().is_array() {
|
} else if tab.get("input").unwrap().is_array() {
|
||||||
// check files list.
|
// check files list.
|
||||||
let list = tab.get("files").unwrap().as_array().unwrap();
|
let list = tab.get("input").unwrap().as_array().unwrap();
|
||||||
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();
|
||||||
|
|||||||
Reference in new issue
Block a user