Answers for "the script has an unsupported mime type ("

0

the script has an unsupported mime type (

app.get("/service-worker.js", (req, res) => {
  res.sendFile(path.resolve(__dirname, "public", "service-worker.js"));
});
app.get("*", function response(req, res) {
  res.sendFile(path.join(__dirname, "public", "index.html"));
});
Posted by: Guest on July-31-2021

Browse Popular Code Answers by Language