各種アセットの出力ファイル名に Misskey 本体のバージョンを含めるようにする (MisskeyIO#305)
This commit is contained in:
parent
769830c6de
commit
436ddb8fdb
4 changed files with 12 additions and 10 deletions
|
@ -124,8 +124,9 @@ export function getConfig(): UserConfig {
|
|||
vue: ['vue'],
|
||||
photoswipe: ['photoswipe', 'photoswipe/lightbox', 'photoswipe/style.css'],
|
||||
},
|
||||
chunkFileNames: process.env.NODE_ENV === 'production' ? '[hash:8].js' : '[name]-[hash:8].js',
|
||||
assetFileNames: process.env.NODE_ENV === 'production' ? '[hash:8][extname]' : '[name]-[hash:8][extname]',
|
||||
entryFileNames: `${meta.version}.[hash].js`,
|
||||
chunkFileNames: `${meta.version}.[hash].js`,
|
||||
assetFileNames: `${meta.version}.[hash][extname]`,
|
||||
},
|
||||
},
|
||||
cssCodeSplit: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue