mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-13 09:07:29 +02:00
refactor(utils): replace hash with contenthash for file loader (#6650)
This commit is contained in:
parent
fbbec7fef8
commit
bae9827d92
4 changed files with 28 additions and 28 deletions
|
@ -39,7 +39,7 @@ export function getFileLoaderUtils(): FileLoaderUtils {
|
|||
|
||||
// defines the path/pattern of the assets handled by webpack
|
||||
const fileLoaderFileName = (folder: AssetFolder) =>
|
||||
`${OUTPUT_STATIC_ASSETS_DIR_NAME}/${folder}/[name]-[hash].[ext]`;
|
||||
`${OUTPUT_STATIC_ASSETS_DIR_NAME}/${folder}/[name]-[contenthash].[ext]`;
|
||||
|
||||
const loaders: FileLoaderUtils['loaders'] = {
|
||||
file: (options: {folder: AssetFolder}) => ({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue