Many features
This commit is contained in:
4
server/dist/index.js
vendored
4
server/dist/index.js
vendored
@@ -1246,6 +1246,10 @@ function toBundleRelativePath(inputPath) {
|
||||
function detectBundleContentType(assetPath) {
|
||||
const extension = path.extname(assetPath).toLowerCase();
|
||||
switch (extension) {
|
||||
case '.mp3':
|
||||
return 'audio/mpeg';
|
||||
case '.m4a':
|
||||
return 'audio/mp4';
|
||||
case '.css':
|
||||
return 'text/css; charset=utf-8';
|
||||
case '.html':
|
||||
|
||||
@@ -1869,6 +1869,10 @@ function detectBundleContentType(assetPath: string): string {
|
||||
const extension = path.extname(assetPath).toLowerCase();
|
||||
|
||||
switch (extension) {
|
||||
case '.mp3':
|
||||
return 'audio/mpeg';
|
||||
case '.m4a':
|
||||
return 'audio/mp4';
|
||||
case '.css':
|
||||
return 'text/css; charset=utf-8';
|
||||
case '.html':
|
||||
|
||||
Reference in New Issue
Block a user