summaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
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",