0
我有一個目錄,我正在將我的Angular Partials放入。包含這些文件:吞沒找不到所有文件
➜ partials: pwd
/home/dev/webapp/ui/public/partials
➜ partials: ls
connect-local.html landing.html login.html profile.html signup.html
而且我正在大口至Concat的,並將其再壓縮成Angulars模板緩存。我有這個在我的gulpfile
//gulpfile.js
...
.pipe(plugins.usemin({
templateCache: [
gulp.src(['public/partials/*.html']),
plugins.debug(),
plugins.angularTemplatecache({
module: 'myApp',
root: 'partials/'
}),
'concat',
plugins.rev()
]
})))
.pipe(gulp.dest('dist/'));
然而gulp.src只有拿起我的一些文件,如通過大口調試:
[15:46:53] Starting 'build'...
[15:46:55] gulp-debug: ~/what/ui/public/partials/connect-local.html
[15:46:55] gulp-debug: ~/what/ui/public/partials/landing.html
[15:46:55] gulp-debug: ~/what/ui/public/partials/login.html
[15:46:55] gulp-debug: ~/what/ui/public/assets/javascript/templates.js
[15:46:55] gulp-debug: 4 items
[15:46:55] Finished 'build' after 1.29 s
有什麼我失蹤?我已成功使用此代碼。有沒有解決方法?它有點削弱我的應用ATM
哪些包的NodeJS,你需要做的usemin? – CDF
最新https://github.com/zont/gulp-usemin – Darcys22