Skip to content

Commit

Permalink
fix(usemin): do not clear generated file if section not found
Browse files Browse the repository at this point in the history
  • Loading branch information
shahata committed Apr 4, 2014
1 parent 0555963 commit ea97af2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ module.exports = function(grunt) {
}
},

custom_usemin_not_found: {
src: ['test/fixtures/one.html', 'test/fixtures/two/**/*.html'],
dest: 'tmp/custom_concat_usemin_not_found.js',
options: {
usemin: 'usemin/not_found.js'
}
},

html5: {
src: ['test/fixtures/html5.html'],
dest: 'tmp/html5.js'
Expand Down
2 changes: 1 addition & 1 deletion tasks/lib/appender.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ var Appender = function(grunt) {
*/
this.save = function(target, files) {
grunt.config(['concat', target], {
files: files,
files: files || grunt.config(['concat', target, 'files']),
options: grunt.config(['concat', target, 'options']) || {}
});

Expand Down

0 comments on commit ea97af2

Please sign in to comment.