Skip to content

Commit 197292b

Browse files
committed
Fix some missing resources packing loaders and test regex in webpack
1 parent da42f73 commit 197292b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

webpackBaseConfig.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,14 +283,20 @@ module.exports = {
283283
test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,
284284
loader: "file"
285285
}, {
286-
test: /\.(woff|woff2)$/,
286+
test: /\.(woff|woff2)(\?v=\d+\.\d+\.\d+)?$/,
287287
loader: "url?prefix=font/&limit=5000"
288288
}, {
289289
test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,
290290
loader: "url?limit=10000&mimetype=application/octet-stream"
291291
}, {
292292
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
293293
loader: "url?limit=10000&mimetype=image/svg+xml"
294+
}, {
295+
test: /\.png(\?v=\d+\.\d+\.\d+)?$/,
296+
loader: "url?limit=10000&mimetype=image/png"
297+
}, {
298+
test: /\.gif(\?v=\d+\.\d+\.\d+)?$/,
299+
loader: "url?limit=10000&mimetype=image/gif"
294300
}]
295301
},
296302

0 commit comments

Comments
 (0)