Skip to content

Commit 884f0fa

Browse files
author
Capacitor+ Bot
committed
chore: sync upstream PR ionic-team#6526 from @terencehonles
2 parents 4c7c126 + a4439cf commit 884f0fa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli/src/tasks/sourcemaps.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ function walkDirectory(dirPath: string) {
1212
walkDirectory(targetFile);
1313
} else {
1414
const mapFile = join(dirPath, `${file}.map`);
15-
if (extname(file) === '.js' && existsSync(mapFile)) {
15+
if (
16+
(extname(file) === '.js' || extname(file) === '.css') &&
17+
existsSync(mapFile)
18+
) {
1619
const bufMap = readFileSync(mapFile).toString('base64');
1720
const bufFile = readFileSync(targetFile, 'utf8');
1821
const result = bufFile.replace(

0 commit comments

Comments
 (0)