我确信有一些明显的东西我不见了,但对于我的生活,我无法让aurelia捆绑工作。
当我运行gulp serve-export
时,使用捆绑包,我得到一个空白页面,没有错误。 <{1}}承诺永远不会回来。
捆绑
System.import('aurelia-bootstrapper')
提供服务的目录
module.exports = {
"bundles": {
"dist/app-build": {
"includes": [
"[**/*.js]",
"**/*.html!text",
"**/*.css!text",
"**/*.json!text"
],
"options": {
"inject": true,
"minify": true,
"depCache": true,
"rev": false
}
},
"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",
"bootstrap",
"bootstrap/css/bootstrap.css!text",
"fetch",
"jquery",
"aurelia-authentication",
"aurelia-configuration",
"sweetalert",
"toastr"
],
"options": {
"inject": true,
"minify": true,
"depCache": false,
"rev": false
}
}
}
};
|- dist/
|-- app-build.js
|-- aurelia.js
|- jspm_packages/
|-- github/
|--- ...
|-- npm/
|--- ...
|-- system.js
|-- system-csp-production.js
|-- system-polyfills.js
|- config.js
|- index.html
的身体
index.html
上面唯一的控制台输出是<body aurelia-app="main">
<script src="jspm_packages/npm/bluebird@3.4.1/js/browser/bluebird.min.js"></script>
<script src="jspm_packages/system.js"></script>
<script src="config.js"></script>
<script>
console.log('test');
System.import('aurelia-bootstrapper')
.then(function() {
console.log('then');
})
.catch(function(error) {
console.log('catch', error);
})
.finally(function() {
console.log('finally');
});
</script>
</body>
。 test
和bluebird.min.js
请求成功,system.js
捆绑请求也是如此。我能看到的唯一奇怪的事情(除了空白页面)是永远不会请求aurelia.js
。
有什么想法吗?