summaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-05-04 22:12:18 -0500
committerTim Keller <tjk@tjkeller.xyz>2025-05-04 22:12:18 -0500
commit5284094278ed6e4861edc3dbadb1d53218e6f6d0 (patch)
tree774c783cf25417bbeb5da2aaceda51bc15e2e1ab /webpack.config.js
parent90f4d77d6fc92105148a6cbe95d8e371c37f1d68 (diff)
downloadimmich-frame-5284094278ed6e4861edc3dbadb1d53218e6f6d0.tar.xz
immich-frame-5284094278ed6e4861edc3dbadb1d53218e6f6d0.zip
config for svg icons
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 5e33203..3b5b8c1 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,3 +1,5 @@
+const path = require("path")
+
module.exports = {
module: {
rules: [
@@ -5,6 +7,13 @@ module.exports = {
test: /\.css$/i,
use: ["style-loader", "css-loader"],
},
+ {
+ test: /\.svg$/,
+ loader: "svg-sprite-loader",
+ options: {
+ symbolId: filePath => path.basename(filePath).replace(/_[0-9]+dp_.*/, ""),
+ },
+ },
],
},
mode: "development",