mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Use import paths from themes when loading a less sheet
This commit is contained in:
@@ -138,10 +138,12 @@ window.loadStylesheet = (stylesheetPath) ->
|
||||
fsUtils.read(stylesheetPath)
|
||||
|
||||
window.loadLessStylesheet = (lessStylesheetPath) ->
|
||||
importPaths = atom.themes.getImportPaths()
|
||||
parser = new less.Parser
|
||||
syncImport: true
|
||||
paths: config.lessSearchPaths
|
||||
paths: importPaths.concat(config.lessSearchPaths)
|
||||
filename: lessStylesheetPath
|
||||
|
||||
try
|
||||
content = null
|
||||
parser.parse fsUtils.read(lessStylesheetPath), (e, tree) ->
|
||||
|
||||
Reference in New Issue
Block a user