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