Browse Source

#2358, remove component glob from assets

pull/2369/head
jlukic 9 years ago
parent
commit
d0e4f74cd1
2 changed files with 2 additions and 2 deletions
  1. 2
      tasks/build/assets.js
  2. 2
      tasks/watch.js

2
tasks/build/assets.js

@ -27,7 +27,7 @@ module.exports = function(callback) {
console.info('Building assets');
// copy assets
return gulp.src(source.themes + '/**/assets/**/' + globs.components + '?(s).*')
return gulp.src(source.themes + '/**/assets/**/*.*')
.pipe(gulpif(config.hasPermission, chmod(config.permission)))
.pipe(gulp.dest(output.themes))
;

2
tasks/watch.js

@ -214,7 +214,7 @@ module.exports = function(callback) {
// only copy assets that match component names (or their plural)
gulp
.watch([
source.themes + '/**/assets/**/' + globs.components + '?(s).*'
source.themes + '/**/assets/**/*.*'
], function(file) {
// copy assets
gulp.src(file.path, { base: source.themes })

Loading…
Cancel
Save