summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Treffler <mail@jonathan-treffler.de>2020-08-10 15:25:09 +0200
committerSimon Spannagel <simonspa@kth.se>2021-12-16 20:21:42 +0100
commit1a8114498c81db3fe0b8cf3252b39183891c0fec (patch)
treee0bf6367cdaa94757d0798a0944e000cf23ed8c5
parentc29e467a071b6b7a5db42f84238cd6e5199b8e7f (diff)
imporved webpack config, to support images
Signed-off-by: Jonathan Treffler <mail@jonathan-treffler.de>
-rw-r--r--webpack.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/webpack.js b/webpack.js
index e5daa927a..9d24f2d29 100644
--- a/webpack.js
+++ b/webpack.js
@@ -1,3 +1,18 @@
+const { merge } = require('webpack-merge')
+const webpack = require('webpack')
const webpackConfig = require('@nextcloud/webpack-vue-config')
-module.exports = webpackConfig
+const config = {
+ module: {
+ rules: [
+ {
+ test: /\.(jpg|png|svg)$/,
+ use: {
+ loader: 'url-loader',
+ },
+ }
+ ],
+ },
+}
+
+module.exports = merge(config, webpackConfig) \ No newline at end of file