Merge pull request #163 from minrk/clean-css

use `lessc --clean-css`
This commit is contained in:
Min RK
2015-03-04 15:44:59 -08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ python:
- 3.4
- 3.3
before_install:
- npm install -g less bower jupyter/configurable-http-proxy
- npm install -g less less-plugin-clean-css bower jupyter/configurable-http-proxy
- git clone --quiet --depth 1 https://github.com/minrk/travis-wheels travis-wheels
install:
- pip install -f travis-wheels/wheelhouse -r dev-requirements.txt .

View File

@@ -158,7 +158,7 @@ class CSS(BaseCommand):
sourcemap = style_css + '.map'
try:
check_call([
'lessc', '-x', '--verbose',
'lessc', '--clean-css', '--verbose',
'--source-map-basepath={}'.format(static),
'--source-map={}'.format(sourcemap),
'--source-map-rootpath=../',
@@ -166,7 +166,7 @@ class CSS(BaseCommand):
])
except OSError as e:
print("Failed to run lessc: %s" % e, file=sys.stderr)
print("You can install less with `npm install -g less`", file=sys.stderr)
print("You can install less with `npm install -g less less-plugin-clean-css`", file=sys.stderr)
raise
# update data-files in case this created new files
self.distribution.data_files = get_data_files()