feat(core): pdf preview (#8569)

Co-authored-by: forehalo <forehalo@gmail.com>
This commit is contained in:
Fangdun Tsai
2024-11-12 19:12:31 +08:00
committed by GitHub
parent 73283df3e1
commit f4abe39689
46 changed files with 1968 additions and 95 deletions

View File

@@ -111,8 +111,8 @@ export const createConfiguration: (
: 'js/[name].js',
// In some cases webpack will emit files starts with "_" which is reserved in web extension.
chunkFilename: pathData =>
pathData.chunk?.name === 'worker'
? 'js/worker.[contenthash:8].js'
pathData.chunk?.name?.endsWith?.('worker')
? 'js/[name].[contenthash:8].js'
: buildFlags.mode === 'production'
? 'js/chunk.[name].[contenthash:8].js'
: 'js/chunk.[name].js',