diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2025-05-04 22:12:18 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2025-05-04 22:12:18 -0500 |
| commit | 5284094278ed6e4861edc3dbadb1d53218e6f6d0 (patch) | |
| tree | 774c783cf25417bbeb5da2aaceda51bc15e2e1ab /webpack.config.js | |
| parent | 90f4d77d6fc92105148a6cbe95d8e371c37f1d68 (diff) | |
| download | immich-frame-5284094278ed6e4861edc3dbadb1d53218e6f6d0.tar.xz immich-frame-5284094278ed6e4861edc3dbadb1d53218e6f6d0.zip | |
config for svg icons
Diffstat (limited to 'webpack.config.js')
| -rw-r--r-- | webpack.config.js | 9 |
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", |
