gpt4 book ai didi

css - 使用 Asset Pipeline 规避 IE8 CSS 文件数限制

转载 作者:太空宇宙 更新时间:2023-11-04 05:00:26 25 4
gpt4 key购买 nike

我遇到了 IE8 的 31 个 CSS 文件限制。

我在想,除非我弄错了,否则 Assets 管道会结合我的 CSS 文件进行生产,因此这不会成为问题。

然而,当我为 IE 调试时,这是一个问题。有没有办法在开发过程中使用 Assets 管道来编译 Assets 。最好的流程是什么?

Assets 通过 application.css.scss 包含,使用 require_directory 。

最佳答案

不知道如何将 Assets 包含在布局文件中(在您的问题中看到这一点会有所帮助),在 config/environments/development.rb 中,您可以添加以下内容

config.assets.debug = false

the documentation 中所述

When debug mode is off, Sprockets concatenates and runs the necessary preprocessors on all files.

这就是我的发展方式; 31 HTTP 请求(即使在开发中)每次刷新页面都很烦人。

关于css - 使用 Asset Pipeline 规避 IE8 CSS 文件数限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11629374/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com