当我尝试创建aurelia包并且已经存在时,我得到一个错误,基本上说它失败了,因为文件已经存在。问题是我的force:true
已设置。对此的任何帮助将不胜感激。
var gulp = require('gulp'),
aureliaBundle = require('aurelia-bundler').bundle;
var aureliaBundleConfig = {
"force": true,
"baseUrl": ".",
"configPath": "js/config.js",
"bundles": {
"js/aurelia-bundle.min": {
"includes": [
"[js/**/*.js]",
"Templates/**/*.html!text"
],
"options": {
"inject": true,
"minify": true,
"depCache": false
}
},
"js/vendor-bundle": {
"includes": [
"lib/github/components/jquery@2.2.4",
"lib/github/signalr/bower-signalr@2.2.0",
"lib/npm/aurelia-bootstrapper@1.0.0-rc.1.0.1",
"lib/npm/aurelia-fetch-client@1.0.0-rc.1.0.1",
"lib/npm/aurelia-framework@1.0.0-rc.1.0.2",
"lib/npm/aurelia-router@1.0.0-rc.1.0.1",
"lib/npm/aurelia-animator-css@1.0.0-rc.1.0.0",
"lib/npm/aurelia-http-client@1.0.0-rc.1.0.0",
"lib/npm/aurelia-kendoui-bridge@0.11.8",
"lib/npm/aurelia-event-aggregator@1.0.0-rc.1.0.0",
"lib/npm/aurelia-templating-binding@1.0.0-rc.1.0.1",
"lib/npm/aurelia-templating-resources@1.0.0-rc.1.0.1",
"lib/npm/aurelia-templating-router@1.0.0-rc.1.0.1",
"lib/npm/aurelia-templating@1.0.0-rc.1.0.1",
"lib/npm/aurelia-loader-default@1.0.0-rc.1.0.0",
"lib/npm/aurelia-history-browser@1.0.0-rc.1.0.0",
"lib/npm/aurelia-logging-console@1.0.0-rc.1.0.0"
],
"options": {
"inject": true,
"minify": true,
"depCache": false
}
}
}
};
gulp.task('bundle:aurelia', function () {
return aureliaBundle(aureliaBundleConfig);
});