Meteor加载的css和js文件的排序

前端之家收集整理的这篇文章主要介绍了Meteor加载的css和js文件的排序前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
有没有任何方法指定一个顺序自动加载css或js文件加载Meteor。

搜索文档,找不到任何东西。

我问,因为我在玩的阶段,我试图使用Twitter的Bootstrap与流星。在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.

猜你在找的CSS相关文章