mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Require will parse .less files into css
This commit is contained in:
committed by
Corey Johnson
parent
bf7e2d38f7
commit
0b674978db
@@ -66,6 +66,13 @@ exts =
|
||||
evaluated = exts.js(file, compiled)
|
||||
$native.write(cacheFilePath, compiled) if writeToCache
|
||||
evaluated
|
||||
less: (file) ->
|
||||
output = ""
|
||||
(new less.Parser).parse __read(file), (e, tree) ->
|
||||
throw new Error(e.message, file, e.line) if e
|
||||
output = tree.toCSS()
|
||||
output
|
||||
|
||||
|
||||
getPath = (path) ->
|
||||
path = resolve(path)
|
||||
|
||||
Reference in New Issue
Block a user