enables loading config within webpack

This commit is contained in:
James
2020-01-05 18:16:19 -05:00
parent 219743228d
commit 4bf0ff2b05
16 changed files with 81 additions and 100 deletions

View File

@@ -18,13 +18,13 @@ const initWebpack = ({ config, app }) => {
const filename = path.resolve(compiler.outputPath, 'index.html');
compiler.outputFileSystem.readFile(filename, (err, result) => {
if (err) {
return next(err)
return next(err);
}
res.set('content-type', 'text/html')
res.send(result)
res.end()
})
})
}
res.set('content-type', 'text/html');
res.send(result);
res.end();
});
});
};
export default initWebpack;