gpt4 book ai didi

meteor - Meteor 加载的 css 和 js 文件的顺序

转载 作者:行者123 更新时间:2023-12-03 07:10:51 25 4
gpt4 key购买 nike

有没有办法指定Meteor自动加载的css或js文件的顺序。

搜索了文档,没有找到任何内容。

我问这个问题是因为我正处于玩弄阶段,并且正在尝试将 Twitter Bootstrap 与 Meteor 一起使用。在 Bootstrap 附带的示例中,基本 bootstrap.css 始终在 bootstrap-responsive.css 之前加载。

有什么想法吗?

最佳答案

此问题已在 http://docs.meteor.com/ 中得到解答。

The JavaScript and CSS files in an application are loaded according to these rules:

Files in the lib directory at the root of your application are loaded first.

Files that match main.* are loaded after everything else.

Files in subdirectories are loaded before files in parent directories, so that files in the deepest subdirectory are loaded first (after lib), and files in the root directory are loaded last (other than main.*).

Within a directory, files are loaded in alphabetical order by filename.

These rules stack, so that within lib, for example, files are still loaded in alphabetical order; and if there are multiple files named main.js, the ones in subdirectories are loaded earlier.

关于meteor - Meteor 加载的 css 和 js 文件的顺序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10109176/

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