Using autoprefixer with Volt

40 Views Asked by At

Is there a way to setup autoprefixer in a Volt application?

1

There are 1 best solutions below

2
Ryan On

I haven't tried it myself yet, but you can probably use https://github.com/ai/autoprefixer-rails#sprockets and do the sprockets setup instructions from a .rb file in config/initializers/server/ If you get it working, let me know.

Try something like this:

require "autoprefixer-rails"
AutoprefixerRails.install(Volt.current_app.sprockets)