【问题标题】:Using autoprefixer with Volt使用带有 Volt 的 autoprefixer
【发布时间】:2015-09-07 14:06:06
【问题描述】:

有没有办法在 Volt 应用程序中设置autoprefixer

【问题讨论】:

    标签: voltrb autoprefixer


    【解决方案1】:

    我自己还没有尝试过,但您可能可以使用https://github.com/ai/autoprefixer-rails#sprockets 并从 config/initializers/server/ 中的 .rb 文件中执行 sprockets 设置说明,如果您可以使用,请告诉我。

    试试这样的:

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

    【讨论】:

    • 谢谢。看起来 Volt.current_app.sprockets 在初始化程序运行时为零。我需要事先要求另一个文件来初始化它吗?
    • 嗯,听起来我需要为启动过程添加更多挂钩。将它添加到我的待办事项列表中。如果你现在需要它,你可能会修补一些东西。(或者 PR 的欢迎)
    猜你喜欢
    • 2017-04-07
    • 2016-05-13
    • 2021-06-24
    • 1970-01-01
    • 2014-11-11
    • 2014-11-03
    • 1970-01-01
    • 1970-01-01
    • 2021-04-21
    相关资源
    最近更新 更多