diff --git a/server/utils.js b/server/utils.js index 4b6339c6..f0d35e09 100644 --- a/server/utils.js +++ b/server/utils.js @@ -3,7 +3,7 @@ import { readdirSync, existsSync } from 'fs' export function getChunkNameFromFilename (filename, dev) { if (dev) { - return filename.replace(/.[^.]*$/, '') + return filename.replace(/\.[^.]*$/, '') } return filename.replace(/-[^-]*$/, '') }