Skip to content

Commit

Permalink
[#439] Properly minify holidayManagement.js.
Browse files Browse the repository at this point in the history
We also tune a bit the `find` commands, to reduce the search scope.
  • Loading branch information
jaragunde authored and anarute committed May 23, 2022
1 parent 98e81bf commit c860dc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ help:

minify:
# WARNING: this will remove any unstaged changes! Do not run on a development directory
for i in `find -name "*.min.js" -not -path "*web/vuejs/*"`; do rm $$i; done
for i in `find -name "*.min.js.map" -not -path "*web/vuejs/*"`; do rm $$i; done
for i in `find web -name "*.min.js" -not -path "*web/vuejs/*"`; do rm $$i; done
for i in `find web -name "*.min.js.map" -not -path "*web/vuejs/*"`; do rm $$i; done
#revert any previous minification changes
git reset --hard HEAD
for i in `find -name "*.js" -not -path "*web/vuejs/*" -not -path "*vendor*"` ; do \
for i in `find web -name "*.js" -not -path "*web/vuejs/*"` ; do \
#extract file name to be used in the uglify output \
FILE=`basename -s .js $$i`; \
DIR=`dirname $$i`; \
Expand Down
2 changes: 1 addition & 1 deletion web/holidayManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class="autocompleteSearchInput"
</div>
</div>

<script src='js/holidayManagement.js'></script>
<script src="js/holidayManagement.js"></script>

<?php
include("include/footer.php");
Expand Down

0 comments on commit c860dc1

Please sign in to comment.