Skip to content

Commit

Permalink
ES5 friendlyness increased
Browse files Browse the repository at this point in the history
  • Loading branch information
victorceban committed Oct 6, 2016
1 parent d2ebad3 commit 5291604
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 5291604

Please sign in to comment.