Use npm install rather than ci and only run build.rs when styles/src is changed rather than all styles
This commit is contained in:
parent
d6024117d8
commit
42e88c43a4
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ fn main() {
|
||||||
|
|
||||||
let output = Command::new("npm")
|
let output = Command::new("npm")
|
||||||
.current_dir("../../styles")
|
.current_dir("../../styles")
|
||||||
.args(["ci"])
|
.args(["install"])
|
||||||
.output()
|
.output()
|
||||||
.expect("failed to run npm");
|
.expect("failed to run npm");
|
||||||
if !output.status.success() {
|
if !output.status.success() {
|
||||||
|
@ -27,5 +27,5 @@ fn main() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
println!("cargo:rerun-if-changed=../../styles");
|
println!("cargo:rerun-if-changed=../../styles/src");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue