Commit 251410ca authored by Robert Knight's avatar Robert Knight

Serve boot script with correct mime type

It was previously served as text/html, which caused warnings in some
contexts.
parent 7173bde9
......@@ -32,6 +32,7 @@ function servePackage(port) {
const serveBootScript = function (req, res) {
const entryPath = require.resolve('../');
const entryScript = readFileSync(entryPath).toString('utf-8');
res.append('Content-Type', 'application/javascript; charset=utf-8');
res.send(entryScript);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment