mirror of
https://github.com/yewprint/yewprint
synced 2025-02-16 12:08:25 +00:00
Download CSS from npm directly
This commit is contained in:
parent
50381d5cc4
commit
892ef1eec0
2 changed files with 6 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
/target
|
||||
/static
|
||||
/*.tgz
|
||||
|
|
5
build.sh
5
build.sh
|
@ -6,7 +6,12 @@ else
|
|||
options=()
|
||||
fi
|
||||
|
||||
if ! [ -f core.tgz ]; then
|
||||
curl -o core.tgz https://registry.npmjs.org/@blueprintjs/core/-/core-3.30.0.tgz
|
||||
fi
|
||||
|
||||
rm -fR static/.gitignore static/*
|
||||
tar xvzf core.tgz -C static --wildcards \*.css --transform='s/.*\///'
|
||||
wasm-pack build --no-typescript --target web --out-name wasm --out-dir ./static "${options[@]}" "$@"
|
||||
rc=$?
|
||||
rm -fR static/{.gitignore,package.json}
|
||||
|
|
Loading…
Add table
Reference in a new issue