Improved the PNG assets optimization on the Dockerfile in the Website service target to do it recursively.
This commit is contained in:
@@ -19,7 +19,7 @@ WORKDIR /static
|
||||
COPY ./Services/Website/Resources/Static .
|
||||
RUN esbuild --minify --allow-overwrite --outdir=css css/*.css \
|
||||
&& esbuild --minify --allow-overwrite --outdir=js js/*.js \
|
||||
&& oxipng --opt max --strip safe *.png \
|
||||
&& oxipng --opt max --strip safe --recursive . \
|
||||
&& svgo --recursive --folder .
|
||||
|
||||
# Export stage: `docker build --target assets-export --output <dir>` writes the minified static files to <dir> for
|
||||
|
||||
Reference in New Issue
Block a user