Navigation Menu

Skip to content

Commit

Permalink
Use YUI JS compressor, exclude __pycache__
Browse files Browse the repository at this point in the history
  • Loading branch information
EtiennePerot committed Apr 12, 2014
1 parent 13fa73f commit 26380d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -33,7 +33,7 @@ build: build-init logo ajax blog css html cv

build-init:
mkdir -p "$(BUILD_DIR)"
rsync -rqhupXt --exclude=".git" --exclude="*.gz" --delete-after "$(SRC_DIR)/" "$(BUILD_DIR)/"
rsync -rqhupXt --exclude=".git" --exclude="*.gz" --exclude="__pycache__" --delete-after "$(SRC_DIR)/" "$(BUILD_DIR)/"

logo:
# 16x16 logo is pregenerated, slightly different
Expand Down Expand Up @@ -61,7 +61,7 @@ html:
while IFS= read -d $$'\0' -r file ; do \
echo "Processing $$file"; \
res/filefilter.py $(HTML_FILTERS_BEFORE_COMPRESSION) "$$file"; \
if htmlcompressor --preserve-php --remove-intertag-spaces --simple-doctype --remove-style-attr --remove-script-attr --remove-form-attr --remove-js-protocol --compress-css --compress-js --js-compressor=closure --closure-opt-level=simple < "$$file" > "$$file.compressed"; then \
if htmlcompressor --preserve-php --remove-intertag-spaces --simple-doctype --remove-style-attr --remove-script-attr --remove-form-attr --remove-js-protocol --compress-css --compress-js --js-compressor=yui < "$$file" > "$$file.compressed"; then \
mv "$$file.compressed" "$$file"; \
else \
rm -f "$$file.compressed"; \
Expand Down

0 comments on commit 26380d4

Please sign in to comment.