pascalduez / postcss-map

PostCSS plugin enabling configuration maps
The Unlicense
121 stars 7 forks source link

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

Open martenzander opened 7 years ago

martenzander commented 7 years ago

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!

pascalduez commented 7 years ago

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?

martenzander commented 7 years ago

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.

pascalduez commented 7 years ago

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.