Reputation: 6415
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
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
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
Reputation: 15736
I doubt it. Just use bourbon or whatever, you don't need phoenix to do that for you.
Upvotes: 0