refactor(utils): replace hash with contenthash for file loader (#6650)

This commit is contained in:
Joshua Chen 2022-02-10 17:43:55 +08:00 committed by GitHub
parent fbbec7fef8
commit bae9827d92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 28 deletions

View file

@ -25,7 +25,7 @@ Generating Base64 & dominant colours palette for a jpeg image imported in your J
loader: '@docusaurus/lqip-loader',
options: {
path: '/media', // your image going to be in media folder in the output dir
name: '[name].[ext]', // you can use [hash].[ext] too if you wish,
name: '[name].[ext]', // you can use [contenthash].[ext] too if you wish,
base64: true, // default: true, gives the base64 encoded image
palette: true // default: false, gives the dominant colours palette
}