Skip to content

Commit 4b42797

Browse files
committed
file should be content hash not depend on build hash
1 parent 0f6fc47 commit 4b42797

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ module.exports.fileLoader = function(publicPath) {
9090
let assetsAbsolutePath = path.join(path.dirname(__dirname), 'src', 'assets');
9191
if (f.startsWith(assetsAbsolutePath)) {
9292
let dirNameInsideAssets = path.relative(assetsAbsolutePath, path.dirname(f));
93-
return `${dirNameInsideAssets}/[name].[ext]?[sha512:hash:base64:6]`;
93+
return `${dirNameInsideAssets}/[name].[ext]?[contenthash:6]`;
9494
} else if (/\.(woff2|woff|eot|ttf)$/.test(f)) {
95-
return `fonts/node_modules/[name].[ext]?[sha512:hash:base64:6]`;
95+
return `fonts/node_modules/[name].[ext]?[contenthash:6]`;
9696
} else {
9797
// throw error as we don't support images yet, what if there are 2 images with the same name
9898
throw Error('Unexpected image inside of node_modules')

0 commit comments

Comments
 (0)