Is there a way to setup autoprefixer in a Volt application?
Asked
Active
Viewed 37 times
1 Answers
0
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)

Ryan
- 956
- 7
- 8
-
Thanks. It looks like Volt.current_app.sprockets is nil at the point the initializers are run. Do I need to require another file to initialize it beforehand? – neurodynamic Sep 11 '15 at 10:40
-
Humm, sounds like I need to add more hooks for the boot process. Adding it to my todo list. If you need it now, you could probably monkey patch something in. (Or PR's welcome) – Ryan Sep 11 '15 at 20:59