Browse Source

Applying PurifyCSS to build output

master
Mobius K 10 months ago
parent
commit
5a03e3a69f
  1. 5
      Makefile
  2. 2
      bluetooth-class
  3. 2
      config.development.yaml
  4. 2
      config.yaml
  5. 2
      portfolio

5
Makefile

@ -59,6 +59,11 @@ build: check-environment clean
go build -o $(build)/server $(project)/server/main/main.go; \
fi
# Minimize CSS output (except for UIKit Lightbox and SVG icon strokes)
for file in `find $(public) -type f -name "*.css"`; do \
npx purifycss $${file} $(public)/**/*.{html,js} --info --min --out $${file} --whitelist "*lightbox*" "*stroke*" ; \
done
# Dry-run of transferring build to remote servers
transfer-check:
$(subTask) flags="n" transfer

2
bluetooth-class

@ -1 +1 @@
Subproject commit b18376e1c857886fe388cac628d15edfdba11e83
Subproject commit 221f2b2f94d35fe2d7a9a069d15ed6aa785c12db

2
config.development.yaml

@ -6,8 +6,6 @@ minify:
params:
fingerprint:
enabled: false
scss:
outputStyle: expanded # expanded (largest), nested (default), compact, or compressed (smallest)
sentry: false
ts:
minify: false

2
config.yaml

@ -23,7 +23,7 @@ params:
enabled: true
algorithm: md5 # sha512 (largest), sha384, sha256 (default), or md5 (smallest)
scss:
outputStyle: compressed # expanded (largest), nested (default), compact, or compressed (smallest)
outputStyle: expanded # expanded (largest), nested (default), compact, or compressed (smallest)
sentry: true
ts:
minify: true

2
portfolio

@ -1 +1 @@
Subproject commit ae361686366b1f22f91c0db9d51ab400e96e6c67
Subproject commit 823ce98e7a6a7fc4bc2f23e81564ff17e130bed3
Loading…
Cancel
Save