Add speedpack to compress static files
This commit is contained in:
parent
6499f3c3cb
commit
c52458df0a
3 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
4
Makefile
4
Makefile
|
@ -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)
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue