[英]How to include aurelia-dialog into bundle with Aurelia?
我在Web應用程序中使用aurelia-dialog,一切正常。
但是當我導出(glup導出)此應用程序時,加載時出現此錯誤:
錯誤:加載http://localhost/myApp/jspm_packages/npm/aurelia-dialog@0.5.10/resources/ai-dialog.html XHR錯誤(未找到404)加載http:// localhost / myApp / jspm_packages / npm時出錯/aurelia-dialog@0.5.10/resources/ai-dialog.html!http://localhost/myApp/jspm_packages/github/systemjs/plugin-text@0.0.3.js加載http:// localhost / myApp /時出錯jspm_packages/npm/aurelia-dialog@0.5.10/resources/ai-dialog.html!template-registry-entry
我的bundles.js內容:
....
"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"
]
.....
有任何想法嗎?
也只需包括其.html
(和.css
)文件。
....
"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"
]
.....
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.