tweaks and start of output

This commit is contained in:
Luke Page
2013-07-18 22:40:59 +01:00
parent f14f86136c
commit 536bfa273c
2 changed files with 6 additions and 3 deletions

View File

@@ -39,8 +39,11 @@
tree.sourceMapOutput.prototype.toCSS = function(env) {
this._sourceMapGenerator = new sourceMap.SourceMapGenerator({ file:"outputFilenameTODO.css", sourceRoot:"http://blah.com/TODO" });
for(var filename in this._contentsMap) {
this._sourceMapGenerator.setSourceContent(filename, this._contentsMap[filename]);
//TODO option to include source in sourcemaps?
if (this._outputSourceFiles) {
for(var filename in this._contentsMap) {
this._sourceMapGenerator.setSourceContent(filename, this._contentsMap[filename]);
}
}
this._rootNode.genCSS(env, this);

View File

@@ -1 +1 @@
// ha
{"version":3,"file":"basic.css","sources":["basic.less"],"names":[],"mappings":"EAIE,UAAA;aAJA,QAAA;sBAMA,SAAA","sourceRoot":""}