Meteor中静态资产的Mount Path

时间:2016-09-07 08:38:04

标签: meteor

运行Meteor应用时,<script>标记中的资源相对于根路径,如<script type="text/javascript" src="/app/routes.js?baa7082cd1947c1ebf3cdabc08bfe8701bd770af"></script>

我试图从不同的路径指向nginx服务器,例如example.com/my-app,但由于资产仍然指向相对于根路径的资源,因此它们不会被加载。 例如。 example.com/app/routes.js代替example.com/my-app/routes.js

webpack我可以指定一个publicPath,资产将指向它。我可以在Meteor中做些类似的事情吗?

1 个答案:

答案 0 :(得分:0)

文件应位于根目录中的 select DISTINCT a.id,a.project_task_event,a.proj_id,a.id_parent,a.id_child,b.project_task_event from (select a.id,project_task_event,proj_id,id_parent,id_child from (select id,project_task_event,proj_id from proj) as a left JOIN (select id,id_parent,id_child from proj_task)as b on a.id = b.id_parent) as a left JOIN (select a.id,project_task_event,proj_id,id_parent,id_child from (select id,project_task_event,proj_id from proj) as a left JOIN (select id,id_parent,id_child from proj_task)as b on a.id = b.id_parent)as b on a.id_child = b.id 目录中 例如,如果结构为public,则public/images图片将为src。与/images/imagefile.jpg相同。

这些文件可以称为javascript