Skip to content

Commit 4bd4852

Browse files
authored
Merge pull request #410 from BeAPI/fix/static
fix missing svg file in dist folder after compilation
2 parents 161a86c + 41f5d5d commit 4bd4852

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/loaders.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = {
2121
},
2222
},
2323
/* ImagesLoader */ {
24-
test: /\.(png|jpe?g|gif|svg)$/,
24+
test: /\.(png|jpe?g|gif|svg|avif|webp)$/,
2525
type: 'asset/resource',
2626
exclude: /icons/,
2727
include: srcPath + '/img',

src/js/post-build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ function requireAll(r) {
66
requireAll(require.context('../img/icons', true, /\.svg$/))
77

88
// STATIC
9-
requireAll(require.context('../img/static', true, /\.(png|jpe?g|gif)$/))
9+
requireAll(require.context('../img/static', true, /\.(png|jpe?g|gif|svg|avif|webp)$/))

0 commit comments

Comments
 (0)