postcss-map icon indicating copy to clipboard operation
postcss-map copied to clipboard

Gob patterns support

Open pascalduez opened this issue 8 years ago • 4 comments

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 avatar Oct 30 '15 08:10 pascalduez

@pascalduez Do you want to add also json support?

TrySound avatar Oct 31 '15 12:10 TrySound

  1. This issue is just for gathering feedback, nothing planned so far.
  2. There's already JSON support, since the yaml.safeLoad method support both.

pascalduez avatar Oct 31 '15 17:10 pascalduez

@pascalduez Wow, cool! Didn't know about json support :)

TrySound avatar Oct 31 '15 19:10 TrySound

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

safareli avatar Nov 05 '15 16:11 safareli