Created
January 5, 2015 07:02
-
-
Save fronteer-kr/262b9eaa6b7d9dfcc433 to your computer and use it in GitHub Desktop.
harp.js less source mapping 보충
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 파일 위치 - node_modules\harp\node_modules\terraform\lib\stylesheet\processors\less.js | |
// 파일 하단부분 (대략 25 line 부근) 수정 | |
parser.parse(fileContents.toString(), function (e, tree) { | |
if(e) return callback(formatError(e)) | |
try{ | |
var error = null | |
//var css = tree.toCSS({ compress: true }) // 수정전 | |
var css = tree.toCSS({ compress: true, sourceMap: true, outputSourceFiles: true }) // 수정후 | |
}catch(e){ | |
var error = formatError(e) | |
var css = null | |
}finally{ | |
callback(error, css) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment