remove inline-css-cli build dep

unnecessary (inline-source-cli already includes its functionality) and a
dependency of it had a high-severity CVE (wouldn't have affected anyone,
but w/e).
mautrix
Harvey Tindall 3 years ago
parent b538922c05
commit 0ea5c7fdc0
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -28,9 +28,8 @@ before:
- npx esbuild --bundle ts/crash.ts --outfile=./data/crash.js --minify
- cp html/crash.html data/
- npx uncss data/crash.html --csspath web/css --output data/bundle.css
- bash -c 'cd data; npx inline-css-cli -i crash.html -o crash.html'
- rm data/bundle.css
- npx inline-source --root data data/crash.html data/crash.html
- rm data/bundle.css
- mv data/crash.html data/html/
- go get -u github.com/swaggo/swag/cmd/swag
- swag init -g main.go

@ -112,9 +112,8 @@ bundle-css:
inline:
cp html/crash.html $(DATA)/crash.html
npx uncss $(DATA)/crash.html --csspath web/css --output $(DATA)/bundle.css
bash -c 'cd $(DATA); npx inline-css-cli -i crash.html -o crash.html'
rm $(DATA)/bundle.css
npx inline-source --root $(DATA) $(DATA)/crash.html $(DATA)/crash.html
rm $(DATA)/bundle.css
copy:
$(info copying fonts)

@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<link rel="stylesheet" type="text/css" href="bundle.css">
<link inline rel="stylesheet" type="text/css" href="bundle.css">
{{ template "header.html" . }}
<title>Crash report</title>
</head>

878
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -22,7 +22,6 @@
"a17t": "^0.4.0",
"browserslist": "^4.16.6",
"esbuild": "^0.8.57",
"inline-css-cli": "^0.0.1",
"inline-source-cli": "^2.0.0",
"lodash": "^4.17.21",
"mjml": "^4.8.0",

Loading…
Cancel
Save