【发布时间】:2014-06-15 00:26:18
【问题描述】:
我只是尝试使用 smart.json 将包添加到我的流星项目中,如下所示:
{
"packages": {
"scss": {},
"iron-router": {},
"normalize.css": {
"git": "https://github.com/rithis/meteor-normalize.css"
},
"Meteor.cron": {
"git": "https://github.com/alexsuslov/Meteor.cron"
}
}
在这种情况下,我手动添加了normalize.css 和Meteor.cron。现在当我这样做时
$> mrt update
这些包被安装到包目录中。到目前为止没有问题,但我认为它们没有被使用。我在浏览器中没有看到 normalize.css 并且为了测试 Meteor.cron 我在 server 目录中添加了一个测试文件
console.log(Meteor.Cron)
打印undefined
有什么建议我在这里做错了吗?
【问题讨论】: