mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 19:41:30 +00:00
8 lines
312 B
Bash
8 lines
312 B
Bash
|
#!/bin/bash
|
||
|
cat $1 | \
|
||
|
sed -e '1,/title/d;/<\/head>/,/<body/d;/<\/body/,/<\/html/d' | \
|
||
|
sed -e '/^@media/,/^}/d' | \
|
||
|
sed -e 's/src="images/src="\/images/g' | \
|
||
|
sed -e 's/src="mobile-images/src="\/mobile-images/g' | \
|
||
|
html-minifier --collapse-whitespace --keep-closing-slash --minify-js --minify-css > $1.wp
|