Allow theme's package.cson to leave off stylesheet extension

This commit is contained in:
probablycorey 2013-03-29 15:00:24 -07:00
parent 142d18bb7c
commit a1e1bee334

View File

@ -16,7 +16,9 @@ class AtomTheme extends Theme
if fs.isFile(metadataPath)
stylesheetNames = CSON.readObject(metadataPath)?.stylesheets
if stylesheetNames
@loadStylesheet(fs.join(@path, name)) for name in stylesheetNames
for name in stylesheetNames
filename = fs.resolveExtension(fs.join(@path, name), ['.css', '.less', ''])
@loadStylesheet(filename)
else
@loadStylesheet(stylesheetPath) for stylesheetPath in fs.list(@path, ['.css', '.less'])