doit: compress js too

This commit is contained in:
codl 2017-08-12 01:07:12 +02:00
parent d07503dd6f
commit d8d31d9b0a
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 7 additions and 1 deletions

View File

@ -54,7 +54,13 @@ def task_compress_static():
import brotli
import gzip
files = ('static/styles.css', 'static/icon.png', 'static/logotype.png') + tuple((f'static/logotype-{width}.png' for width in (200, 400, 600, 800)))
files = (
'static/styles.css',
'static/icon.png',
'static/logotype.png',
'static/version.js',
'static/settings_form.js',
) + tuple((f'static/logotype-{width}.png' for width in (200, 400, 600, 800)))
def compress_brotli(dependencies):
for filename in dependencies: