Andrew Hendrie
Andrew Hendrie

Reputation: 6415

AutoPrefixer for CSS Styles in the Phoenix Framework

When developing Rails applications, I'd often use AutoPrefixer for cross-browser compatibility of certain styles that require vendor prefixes.

Is there an equivalent 'gem' (or 'plug') or package (something that provides the autoprefixer functionality) for the Phoenix Framework?

Upvotes: 0

Views: 290

Answers (3)

Cloud Le
Cloud Le

Reputation: 61

Phoenix use Node.js for their front-end build system - Brunch is one of the latest node.js package for that which shipped by default in Phoenix.

"equivalent 'gem' (or 'plug') or package" that you're looking for is a node-package, therefore it could be something like: Brunch, Webpack, Gulp, Grunt.

I would suggest Webpack if you're serious the front-end build.

Upvotes: 1

jacklin
jacklin

Reputation: 2779

Take a look at this: https://github.com/brunch/postcss-brunch

This should let you use the Autoprefixer with Brunch.

I haven't tried it yet but it's on the list for tomorrow.
I'll update if I run into any gotcha's, but it seems straightforward.

Upvotes: 1

NoDisplayName
NoDisplayName

Reputation: 15736

I doubt it. Just use bourbon or whatever, you don't need phoenix to do that for you.

Upvotes: 0

Related Questions