Skip to content

Commit

Permalink
Merge pull request #2 from victorceban/master
Browse files Browse the repository at this point in the history
ES5 friendlyness increased
  • Loading branch information
astralarya authored Feb 14, 2017
2 parents d2ebad3 + 5291604 commit 0e10918
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ const path = require('path');
const fs = require('fs');
const archiver = require('archiver');

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

0 comments on commit 0e10918

Please sign in to comment.