mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-25 20:25:31 +00:00
[WebUI] Copy non-minified JS file if slimit missing
This will remove the setup dependency in "slimit" package. In case "slimit" is missing, the non-minified JS files will be copied as is to the build. "slimit" is marked as a dependency for development process only.
This commit is contained in:
parent
ba6af99b05
commit
0ed3554f95
1 changed files with 4 additions and 1 deletions
|
@ -57,7 +57,10 @@ if module_exists('closure'):
|
||||||
elif module_exists('slimit'):
|
elif module_exists('slimit'):
|
||||||
from slimit import minify
|
from slimit import minify
|
||||||
else:
|
else:
|
||||||
raise ImportError('Requires "slimit" package for minifying WebUI files.')
|
print('WARNING: Unable to minify js files. They will be copied as is.')
|
||||||
|
|
||||||
|
def minify(text):
|
||||||
|
return text
|
||||||
|
|
||||||
|
|
||||||
def source_files_list(source_dir):
|
def source_files_list(source_dir):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue