Serve sourcemaps from webpack

This commit is contained in:
Tim Schaub
2018-11-14 15:41:34 +01:00
parent f9a7cf2251
commit c74d80504e

View File

@@ -67,7 +67,8 @@ function serve(options) {
return;
}
if (path.extname(req.url) === '.js') {
const ext = path.extname(req.url);
if (ext === '.js' || ext === '.map') {
webpackHandler(req, res, notFound(req, res));
return;
}