Skip to content

Commit

Permalink
Handle simple string option
Browse files Browse the repository at this point in the history
  • Loading branch information
astralarya committed Aug 15, 2016
1 parent 07bf347 commit a78742e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ const fs = require('fs');
const archiver = require('archiver');

function WebpackArchivePlugin(options = {}) {
this.options = options;
if(typeof options === 'string') {
this.options = {output: options};
} else {
this.options = options;
}
}

WebpackArchivePlugin.prototype.apply = function(compiler) {
Expand Down

0 comments on commit a78742e

Please sign in to comment.