Skip to content

Commit ff23493

Browse files
fix: correct paths to bundle output
1 parent b41d013 commit ff23493

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fusebox/compression.plugin.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ export class CompressionPluginClass implements Plugin {
4646
gzip_(file, { level: 9 }).pipe(
4747
flatMap(compressed =>
4848
bundleOutput.writeToOutputFolder(
49-
`${bundleOutput.lastGeneratedFileName}.gzip`,
49+
`${bundleOutput.lastPrimaryOutput.relativePath}.gzip`,
5050
compressed
5151
)
5252
)
5353
),
5454
brotli_(file).pipe(
5555
flatMap(compressed =>
5656
bundleOutput.writeToOutputFolder(
57-
`${bundleOutput.lastGeneratedFileName}.br`,
57+
`${bundleOutput.lastPrimaryOutput.relativePath}.br`,
5858
compressed
5959
)
6060
)

0 commit comments

Comments
 (0)