chore(webpack5): use [fullhash]

This commit is contained in:
George Papadakis 2021-03-17 08:56:53 +02:00
parent df27d3adf3
commit e8f91ebabf

View File

@ -53,7 +53,7 @@ export async function createDefaultWebpackConfig(
test: /\.(svg|ico|jpg|jpeg|png|apng|gif|eot|otf|webp|ttf|woff|woff2|cur|ani|pdf)(\?.*)?$/,
loader: require.resolve('file-loader'),
options: {
name: 'static/media/[name].[hash:8].[ext]',
name: 'static/media/[name].[fullhash:8].[ext]',
},
},
{
@ -61,7 +61,7 @@ export async function createDefaultWebpackConfig(
loader: require.resolve('url-loader'),
options: {
limit: 10000,
name: 'static/media/[name].[hash:8].[ext]',
name: 'static/media/[name].[fullhash:8].[ext]',
},
},
],