Skip to content

Instantly share code, notes, and snippets.

@fronteer-kr
Created January 5, 2015 07:02
Show Gist options
  • Save fronteer-kr/262b9eaa6b7d9dfcc433 to your computer and use it in GitHub Desktop.
Save fronteer-kr/262b9eaa6b7d9dfcc433 to your computer and use it in GitHub Desktop.
harp.js less source mapping 보충
// 파일 위치 - 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