Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Commit

Permalink
made the property optional when using a globbing pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
louisameline committed May 25, 2016
1 parent 88d5cb9 commit 6e120ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demo/multiple/Gruntfile.js
Expand Up @@ -5,7 +5,7 @@ module.exports = function(grunt) {
umd: {
'default': {
src: 'js/*.js',
dest: 'output',
dest: 'output', // optional, the src files will be overwritten if omitted
objectToExport: 'demo',
globalAlias: 'demo',
indent: 4
Expand Down
4 changes: 2 additions & 2 deletions tasks/umd.js
Expand Up @@ -25,10 +25,10 @@ module.exports = function(grunt) {

try {
var inputFiles = file.expand(options.src);
var destination = options.dest || options.src;

inputFiles.forEach(function(inputFile) {
var dest;
var destination = options.dest || '.',
dest;

if(path.extname(destination) === '.js') {
dest = destination;
Expand Down

0 comments on commit 6e120ad

Please sign in to comment.