add comment
This commit is contained in:
parent
9e1ca21c92
commit
7a23bd080b
1 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,8 @@ export function startServer(hostname = "localhost", port = 6969) {
|
|||
|
||||
const extension = path.extname(filepath);
|
||||
|
||||
// chromium doesn't care about your file extensions,
|
||||
// it only wants content-type
|
||||
const contentType = {
|
||||
'.svg': "image/svg+xml",
|
||||
'.png': "image/png",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue