Merge pull request #5221 from edx/tim/sourcemaps-debug-only

Do not generate CSS source maps in production
This commit is contained in:
Tim Babych
2014-09-17 13:37:55 +03:00
2 changed files with 1 additions and 3 deletions

View File

@@ -3371,5 +3371,3 @@ Annotator.prototype.setupPlugins = function(config, options) {
/*
//
*/
//@ sourceMappingURL=annotator-full.map

View File

@@ -132,7 +132,7 @@ def compile_sass(debug=False):
"""
sh(cmd(
'sass', '' if debug else '--style compressed',
"--sourcemap",
"--sourcemap" if debug else '',
"--cache-location {cache}".format(cache=SASS_CACHE_PATH),
"--load-path", " ".join(SASS_LOAD_PATHS + THEME_SASS_PATHS),
"--update", "-E", "utf-8", " ".join(SASS_UPDATE_DIRS + THEME_SASS_PATHS),