mirror of
https://github.com/Hopiu/django-select2.git
synced 2026-04-24 23:14:44 +00:00
Simple fix in setup.py
This commit is contained in:
parent
05b69c89b6
commit
d0f39f9fc4
1 changed files with 1 additions and 1 deletions
2
setup.py
2
setup.py
|
|
@ -153,7 +153,7 @@ def minify(files, outfile, ftype):
|
|||
raise Exception('Could not minify.')
|
||||
|
||||
|
||||
if 'sdist' == sys.argv[1]:
|
||||
if len(sys.argv) > 1 and 'sdist' == sys.argv[1]:
|
||||
minify(['static/js/select2.js'], 'static/js/select2.min.js', 'js')
|
||||
minify(['static/js/heavy_data.js'], 'static/js/heavy_data.min.js', 'js')
|
||||
minify(['static/css/select2.css', 'static/css/extra.css'], 'static/css/all.min.css', 'css')
|
||||
|
|
|
|||
Loading…
Reference in a new issue