Commit 16745cde by Christine Lytwynec

pass debug option through to compile_sass

parent 9a94c601
...@@ -132,10 +132,12 @@ def compile_coffeescript(*files): ...@@ -132,10 +132,12 @@ def compile_coffeescript(*files):
@task @task
@no_help @no_help
def compile_sass(debug=False): @cmdopts([('debug', 'd', 'Debug mode')])
def compile_sass(options):
""" """
Compile Sass to CSS. Compile Sass to CSS.
""" """
debug = options.get('debug')
parts = ["sass"] parts = ["sass"]
parts.append("--update") parts.append("--update")
parts.append("--cache-location {cache}".format(cache=SASS_CACHE_PATH)) parts.append("--cache-location {cache}".format(cache=SASS_CACHE_PATH))
...@@ -244,7 +246,7 @@ def update_assets(args): ...@@ -244,7 +246,7 @@ def update_assets(args):
compile_templated_sass(args.system, args.settings) compile_templated_sass(args.system, args.settings)
process_xmodule_assets() process_xmodule_assets()
compile_coffeescript() compile_coffeescript()
compile_sass(args.debug) call_task('compile_sass', options={'debug': args.debug})
if args.collect: if args.collect:
collect_assets(args.system, args.settings) collect_assets(args.system, args.settings)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment