axept / prejss

Get the power of PostCSS with plugins in your JSS styles. 🎨 Just put CSS into JS and get it as JSS object.
MIT License
248 stars 13 forks source link

Add example for PostCSS config #8

Open DenisIzmaylov opened 7 years ago

DenisIzmaylov commented 7 years ago

Or even include default preset?

I meant plugins like "nested", etc.

grigory-leonenko commented 7 years ago

Написал комплСксный ΠΏΡ€ΠΈΠΌΠ΅Ρ€ с ΠΊΠΎΠ½Ρ„ΠΈΠ³ΠΎΠΌ postcss, ΠΈ Ρ€Π΅Π½Π΄Π΅Ρ€ΠΎΠΌ React прилоТСния. Для запуска Π²Π½ΡƒΡ‚Ρ€ΠΈ ΠΊΠ°Ρ‚Π°Π»ΠΎΠ³Π° Π½ΡƒΠΆΠ½ΠΎ Π²Ρ‹ΠΏΠΎΠ»Π½ΠΈΡ‚ΡŒ npm install ΠΈ npm run start.

https://github.com/axept/jss-from-postcss/tree/master/examples/basic

noahehall commented 7 years ago

here is my .postcssrc

{
  "plugins": {
    "stylelint": {},
    "postcss-import": {},
    "postcss-url": {},
    "cssnano": {},
    "postcss-browser-reporter": {
      "selector": "@global body:before"
    },
    "postcss-reporter": {
      "clearMessages": true 
    }
  }
}
DenisIzmaylov commented 7 years ago

@noahehall thank you! It seems we could add with extended examples to https://github.com/axept/prejss-example-app

noahehall commented 7 years ago

Definitely - i can submit a pull request,

however, i've updated it a bit, so that the the reporter is logging stylelint issues, but it is not showing the filename with the errors - see below, all errors come from 'input css' image

DenisIzmaylov commented 7 years ago

Would be amazing great!

Good point about source file. As I know it's pretty simple to add it.