suitcss / preprocessor

A future-facing CSS preprocessor (used by SUIT CSS)
http://suitcss.github.io
MIT License
135 stars 25 forks source link

Can't figure out how to activate source-map option. #22

Closed schoenwaldnils closed 8 years ago

schoenwaldnils commented 8 years ago

I tried to generate a .map file https://github.com/postcss/postcss/blob/master/docs/source-maps.md

package.json:

...
  "scripts": {
    "watch": "suitcss --watch --verbose --config config/suitcss.js source/assets/styles/main.css source/build/main.css"
  }

suitcss.js:

'use strict';

module.exports = {
  map: {
    inline: false
  }
};

Cant figure out where I am wrong. Any idea?

simonsmith commented 8 years ago

We're not passing any options to postcss in the way you're using them. We can though, perhaps a postcss config object would help.

schoenwaldnils commented 8 years ago

Hm, I think I don't really get what you mean :/ I know how to use postcss-plugins and configure them. But how do I define the postcss config object?

simonsmith commented 8 years ago

I meant we'd need to add the ability to pass options to postcss itself, currently you can't. I can add a map option at least, so that you can use that.

schoenwaldnils commented 8 years ago

Ah ^^ Looking forward to it! Thank you

giuseppeg commented 8 years ago
currently you can't. I can add a map option at least, so that you can use that.

I'd say let's find a way to pass postcss options rather than add the single one.

schoenwaldnils commented 8 years ago

I'd say let's find a way to pass postcss options rather than add the single one.

+1 seems more logical to me too all or nothing :D