diff --git a/index.js b/index.js index 0543ec8..6f4d941 100644 --- a/index.js +++ b/index.js @@ -5,7 +5,7 @@ var Promise = require('bluebird'); function StaticSiteGeneratorWebpackPlugin(renderSrc, outputPaths, locals, scope) { this.renderSrc = renderSrc; - this.outputPaths = Array.isArray(outputPaths) ? outputPaths : [outputPaths]; + this.outputPaths = Array.isArray(outputPaths) ? outputPaths : [ outputPaths || renderSrc + '.html' ]; this.locals = locals; this.scope = scope; }