MAPG-78 use svgo instead of html-minifier

This commit is contained in:
Bence Pőcze 2020-05-30 01:51:13 +02:00
parent f4e9930093
commit d55caefda0
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ RUN ./install-composer.sh
# Install Node.js and required packages
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt install -y nodejs
RUN npm install -g uglify-js clean-css-cli html-minifier
RUN npm install -g uglify-js clean-css-cli svgo
EXPOSE 80
VOLUME /var/www/mapguesser

View File

@ -6,4 +6,4 @@ ROOT_DIR=$(dirname $(readlink -f "$0"))/..
uglifyjs ${ROOT_DIR}/public/static/js/mapguesser.js -c -m -o ${ROOT_DIR}/public/static/js/mapguesser.js
cleancss ${ROOT_DIR}/public/static/css/mapguesser.css -o ${ROOT_DIR}/public/static/css/mapguesser.css
html-minifier ${ROOT_DIR}/public/static/img/loading.svg --collapse-whitespace --remove-comments -o ${ROOT_DIR}/public/static/img/loading.svg
svgo ${ROOT_DIR}/public/static/img/loading.svg -o ${ROOT_DIR}/public/static/img/loading.svg