Build: Adjust frontend deploy script
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
52bbcb4489
commit
fc62114409
@ -1,9 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Running UglifyJS"
|
ROOTIN="/data/in"
|
||||||
JSIN="/data/in/js/"
|
ROOTOUT="/data/out"
|
||||||
JSOUT="/data/out/js"
|
|
||||||
uglifyjs-folder "$JSIN" -x ".js" -eo "$JSOUT"
|
echo "Running UglifyJS on /data/in folder"
|
||||||
|
uglifyjs-folder "$ROOTIN" -x ".js" -eo "$ROOTOUT"
|
||||||
|
|
||||||
echo "Running UglifyCSS"
|
echo "Running UglifyCSS"
|
||||||
CSSIN="/data/in/styles/"
|
CSSIN="/data/in/styles/"
|
||||||
@ -22,7 +23,7 @@ done
|
|||||||
echo "Moving 'styles' to 'out'"
|
echo "Moving 'styles' to 'out'"
|
||||||
cp -r /data/in/styles /data/out/styles
|
cp -r /data/in/styles /data/out/styles
|
||||||
|
|
||||||
echo "Running html-minifier-terser"
|
echo "Running html-minifier-terser on /folder"
|
||||||
HTMLIN="/data/in/"
|
HTMLIN="/data/in/"
|
||||||
HTMLOUT="/data/out"
|
HTMLOUT="/data/out"
|
||||||
html-minifier-terser --collapse-whitespace --remove-comments --file-ext html --input-dir /data/in/ --output-dir /data/out/
|
html-minifier-terser --collapse-whitespace --remove-comments --file-ext html --input-dir /data/in/ --output-dir /data/out/
|
||||||
|
Reference in New Issue
Block a user