postcss-map
postcss-map copied to clipboard
Gob patterns support
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}' ]
};
@pascalduez Do you want to add also json support?
- This issue is just for gathering feedback, nothing planned so far.
- There's already JSON support, since the
yaml.safeLoad
method support both.
@pascalduez Wow, cool! Didn't know about json support :)
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