Skip to content

Commit

Permalink
Fix temporary filesystem location
Browse files Browse the repository at this point in the history
This should fix #29.
  • Loading branch information
developit authored Feb 22, 2019
1 parent ec2320f commit e9859ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* the License.
*/

import os from 'os';
import fs from 'fs';
import jsdom from 'jsdom';
import loaderUtils from 'loader-utils';
import LibraryTemplatePlugin from 'webpack/lib/LibraryTemplatePlugin';
Expand Down Expand Up @@ -96,7 +96,7 @@ async function prerender (parentCompilation, request, options, inject, loader) {

const outputOptions = {
// fix: some plugins ignore/bypass outputfilesystem, so use a temp directory and ignore any writes.
path: os.tmpdir(),
path: fs.mkdtempSync('prerenderloader'),
filename: FILENAME
};

Expand Down

0 comments on commit e9859ab

Please sign in to comment.