]> jfr.im git - irc/freenode/web-7.0.git/commitdiff
optimize svgs 16/head
authorEd Kellett <redacted>
Wed, 24 Feb 2016 00:15:49 +0000 (00:15 +0000)
committerEd Kellett <redacted>
Wed, 24 Feb 2016 00:15:49 +0000 (00:15 +0000)
.travis.yml
config.yml

index b3cf2e8595da4a7d4666ef0bb292153a40dca24b..90efd2894ad19ddc0ad4aa517c2eb3c5173b50fd 100644 (file)
@@ -8,6 +8,7 @@ before_install:
 - nvm install 5.7.0
 - nvm use 5.7.0
 - npm install myth
+- npm install svgo
 - openssl aes-256-cbc -K $encrypted_ac880c30010f_key -iv $encrypted_ac880c30010f_iv
   -in .deploy-key.enc -out .deploy-key -d && chmod go-rwx .deploy-key
 after_success: ./deploy.sh
index 31bc8369097b41668cbc7f8c47e4402a7dac8d22..8ddb088093b87caf37388220afaf294f935811cd 100644 (file)
@@ -19,6 +19,12 @@ resources:
     source: static/img
     output: out/static/img
     recursive: True
+    pattern: '*.png'
+  - command: [svgo, -p, '7', -i, -, -o, -]
+    source: static/img
+    output: out/static/img
+    recursive: True
+    pattern: '*.svg'
   - command: [myth, --]
     source: static/css
     output: out/static/css