kodyl / stilr

Encapsulated styling for your javascript components with all the power of javascript and CSS combined.
MIT License
236 stars 16 forks source link

Vendor prefixing? #6

Closed doctyper closed 9 years ago

doctyper commented 9 years ago

Hi, loving Stilr so far. Can your recommend an approach to vendor prefix values in development / hot-load mode? Autoprefixer works great on the server side but it seems to have compatibility issues being imported into Webpack.

chriskjaer commented 9 years ago

Yeah, there's a trick to get Autoprefixer working with webpack. In your webpack config you have to add:

  node: {
    fs: 'empty'
  }

After that you're able to use autoprefixer on the client as you would on the server. I'll add it to the documentation.

chriskjaer commented 9 years ago

I've added an entry to the readme about this and how to use autoprefixer in development.