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

Is it possible to write maps inside one of my .scss files?

Open martenzander opened this issue 7 years ago • 3 comments

Hey, I was wondering if there was a way to use the maps like actual sass maps inside of my source files scss or sass files, or does it have to be .yml ?

Thanks in Advance!

martenzander avatar May 04 '17 13:05 martenzander

Hi,

the plugin does not implement the whole parsing and tooling as Sass does, and most probably will not, so currently no, not possible, your maps have to be either in an external file or passed as an object.

If you have SCSS or Sass files, why not using Sass maps?

pascalduez avatar May 04 '17 14:05 pascalduez

well that's sad. The only thing that's really missing in postcss so far. Anyway, keep up the great work ;)!

i just call my soruce files like "*.scss" because i am still using postcss-scss syntax. its no actual sass.

martenzander avatar May 05 '17 15:05 martenzander

Check out this comment and issue.

Re-implementing Sass like map features would be quite some work I think, to make it as good. If someone want to tackle this, why not. I'm not interested personally.

pascalduez avatar May 05 '17 16:05 pascalduez