Skip to content

Commit

Permalink
Remove minification of JS and CSS
Browse files Browse the repository at this point in the history
It's technically not necessary and takes too much time.

Minified files can cause problems when debugging, because they are
preferred to their non-minified siblings – so if you change a file and
don't see the result in the browser, check if a minified version of the
edited file is present and loaded instead.
  • Loading branch information
pabzm committed Aug 13, 2024
1 parent 4205247 commit 9d7c79a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions docker-entrypoint-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ if [[ -f /var/www/html/index.php ]]; then
composer --prefer-dist --no-dev --no-interaction --optimize-autoloader install
# Download external Javascript dependencies.
bin/install-jsdeps.sh
# Minify all JS files
bin/jsshrink.sh
# Translate elastic's styles to CSS.
cd skins/elastic
npx lessc --clean-css="--s1 --advanced" styles/styles.less > styles/styles.min.css
Expand All @@ -17,8 +15,6 @@ if [[ -f /var/www/html/index.php ]]; then
cd -
# Update cache-buster parameters in CSS-URLs.
bin/updatecss.sh
# Minify all CSS files.
bin/cssshrink.sh
fi

exec /docker-entrypoint.sh "$@"

0 comments on commit 9d7c79a

Please sign in to comment.