aurelia bundle - serve from a single directory

时间:2015-06-25 18:17:28

标签: aurelia

Trying to use the aurelia cli bundling facility.

Is it possible to serve all app files (i.e. index.html, app-bundle.html, app-bundle.js, etc) from a single directory or index.html must be at the top (./) directory and the other files in a child (./dist) directory?

1 个答案:

答案 0 :(得分:0)

在封面下,cli正在使用JSPM / System.js的捆绑功能。这可以通过查看config.js路径来查找捆绑包和服务时的文件。如果您的路径设置为从根目录提供,则应按预期工作。问题是,如果你试图捆绑root,它将尝试获取那里的所有.js文件,如果你不排除它们可能会很糟糕。