1
Fork 0

Add speedpack to compress static files

This commit is contained in:
Jake Howard 2017-11-11 16:34:29 +00:00
parent 6499f3c3cb
commit c52458df0a
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 6 additions and 1 deletions

View file

@ -14,7 +14,7 @@ jobs:
command: npm install
- run:
name: Build site
command: make build
command: make release
- run:
name: Run Tests
command: make test

View file

@ -6,6 +6,10 @@ STATIC_BUILD=$(BASEDIR)/static/build
OUTPUT_DIR=$(BASEDIR)/public
release: build
$(NODE_BIN)/speedpack $(OUTPUT_DIR) -o $(OUTPUT_DIR)
build: install
rm -rf $(OUTPUT_DIR)
rm -rf $(STATIC_BUILD)

View file

@ -24,6 +24,7 @@
"lg-thumbnail": "1.0.3",
"lightgallery": "1.4.0",
"plyr": "2.0.17",
"speedpack": "0.1.4",
"tstatic": "1.1.0"
}
}