Manually set mime type for TypeScript files
This commit is contained in:
committed by
MICHAEL JACKSON
parent
c68dac5f33
commit
f91bf5abd7
@ -4,7 +4,7 @@ const mime = require('mime')
|
||||
const TextFiles = /\/?(\.[a-z]*rc|\.git[a-z]*|\.[a-z]*ignore)$/i
|
||||
|
||||
mime.define({
|
||||
'text/plain': ['license', 'readme', 'changes', 'authors', 'makefile'],
|
||||
'text/plain': ['license', 'readme', 'changes', 'authors', 'makefile', 'ts'],
|
||||
})
|
||||
|
||||
const getContentType = (file) =>
|
||||
|
Reference in New Issue
Block a user