Skip to content

Commit

Permalink
things work now?
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts committed Dec 9, 2021
1 parent e22305b commit 2af7ef3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/gatsby/src/utils/webpack-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,9 @@ export const createWebpackUtils = (
return {
use: [loaders.url()],
test: /\.(eot|otf|ttf|woff(2)?)(\?.*)?$/,
generator: {
filename: `${assetRelativeRoot}[name]-[hash].[ext]`,
},
}
}

Expand All @@ -550,6 +553,9 @@ export const createWebpackUtils = (
return {
use: [loaders.url()],
test: /\.(ico|svg|jpg|jpeg|png|gif|webp|avif)(\?.*)?$/,
generator: {
filename: `${assetRelativeRoot}[name]-[hash].[ext]`,
},
}
}

Expand All @@ -561,6 +567,9 @@ export const createWebpackUtils = (
return {
use: [loaders.url()],
test: /\.(mp4|webm|ogv|wav|mp3|m4a|aac|oga|flac)$/,
generator: {
filename: `${assetRelativeRoot}[name]-[hash].[ext]`,
},
}
}

Expand Down

0 comments on commit 2af7ef3

Please sign in to comment.