Gob patterns support
pascalduez opened this issue · 4 comments
pascalduez commented
Add glob patterns support in options for map files?
I'm not sure this is really needed.
var opts = {
basePath: 'css/',
maps: [ '*.yml' ]
};
var opts = {
basePath: 'css/',
maps: [ '{example, breakpoints, fonts}.{yml, json}' ]
};
TrySound commented
@pascalduez Do you want to add also json support?
pascalduez commented
- This issue is just for gathering feedback, nothing planned so far.
- There's already JSON support, since the
yaml.safeLoad
method support both.
TrySound commented
@pascalduez Wow, cool! Didn't know about json support :)
safareli commented
what if you require
file instead of readFile
and then yaml.safeLoad
? benefit will be that one can also load .js
file or .someext
if loader for it is registered in require