diff --git a/index.js b/index.js index 5573c1c..63b177f 100644 --- a/index.js +++ b/index.js @@ -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 {