13 lines
382 B
Python
13 lines
382 B
Python
# -*- coding: iso-8859-1 -*-
|
|
def compress_javascript(config, output_path):
|
|
from mediacompress import compress_js_files
|
|
compress_js_files(output_path, excludes=("*.min.js",))
|
|
|
|
|
|
def compress_css(config, output_path):
|
|
from mediacompress import compress_css_files
|
|
compress_css_files(output_path)
|
|
|
|
hooks = {
|
|
'site.output.post': [compress_javascript, compress_css],
|
|
}
|