mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-22 00:19:24 +03:00
Allow theme's package.cson to leave off stylesheet extension
This commit is contained in:
parent
142d18bb7c
commit
a1e1bee334
@ -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'])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user