首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何将奥雷利亚-对话框与奥雷利亚捆绑在一起?

如何将奥雷利亚-对话框与奥雷利亚捆绑在一起?
EN

Stack Overflow用户
提问于 2016-05-20 09:17:20
回答 1查看 493关注 0票数 2

我在我的web应用程序中使用了aurelia对话框,一切都很好。

但是当我导出(浏览导出)这个应用程序时,我在加载时出现了以下错误:

错误: XHR错误(404未找到)加载packages/npm/aurelia-dialog@0.5.10/resources/ai-dialog.html错误加载packages/github/systemjs/plugin-text@0.0.3.js错误加载packages/npm/aurelia-dialog@0.5.10/resources/ai-dialog.html!template-registry-entry

我的bundles.js内容:

代码语言:javascript
复制
....
"dist/aurelia": {
  "includes": [
    "aurelia-framework",
    "aurelia-bootstrapper",
    "aurelia-fetch-client",
    "aurelia-router",
    "aurelia-animator-css",
    "aurelia-templating-binding",
    "aurelia-polyfills",
    "aurelia-templating-resources",
    "aurelia-templating-router",
    "aurelia-loader-default",
    "aurelia-history-browser",
    "aurelia-logging-console",
    "aurelia-event-aggregator",
    "bootstrap",
    "bootstrap/css/bootstrap.css!text",
    "aurelia-dialog",
    "aurelia-i18n",
    "text",
    "i18next-xhr-backend",
    "fetch"
  ]
  .....

有什么想法吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-05-20 12:53:21

只需包括它的.html (和.css)文件。

代码语言:javascript
复制
....
"dist/aurelia": {
  "includes": [
    "aurelia-framework",
    "aurelia-bootstrapper",
    "aurelia-fetch-client",
    "aurelia-router",
    "aurelia-animator-css",
    "aurelia-templating-binding",
    "aurelia-polyfills",
    "aurelia-templating-resources",
    "aurelia-templating-router",
    "aurelia-loader-default",
    "aurelia-history-browser",
    "aurelia-logging-console",
    "aurelia-event-aggregator",
    "bootstrap",
    "bootstrap/css/bootstrap.css!text",
    "aurelia-dialog",
    "aurelia-dialog/resources/ai-dialog*.html!text", // <- like this
    "aurelia-dialog/dialog.css!text", // <- CSS file
    "aurelia-i18n",
    "text",
    "i18next-xhr-backend",
    "fetch"
  ]
  .....
票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37342750

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档