Browse Source

Add some files that escaped commit before

s2224834 6 years ago
parent
commit
d288acdd4e
2 changed files with 10 additions and 2 deletions
  1. 1 0
      package.json
  2. 9 2
      webpack.config.js

+ 1 - 0
package.json

@@ -69,6 +69,7 @@
     "sass-loader": "^7.1.0",
     "sitemap": "^2.1.0",
     "style-loader": "^0.23.1",
+    "svg-url-loader": "^2.3.2",
     "url-loader": "^1.1.2",
     "web-resource-inliner": "^4.2.1",
     "webpack": "^4.28.3",

+ 9 - 2
webpack.config.js

@@ -100,8 +100,15 @@ module.exports = {
                     limit: 10000
                 }
             },
+            {
+                test: /\.svg$/,
+                loader: "svg-url-loader",
+                options: {
+                    encoding: "base64"
+                }
+            },
             { // First party images are saved as files to be cached
-                test: /\.(png|jpg|gif|svg)$/,
+                test: /\.(png|jpg|gif)$/,
                 exclude: /node_modules/,
                 loader: "file-loader",
                 options: {
@@ -109,7 +116,7 @@ module.exports = {
                 }
             },
             { // Third party images are inlined
-                test: /\.(png|jpg|gif|svg)$/,
+                test: /\.(png|jpg|gif)$/,
                 exclude: /web\/static/,
                 loader: "url-loader",
                 options: {