diff options
author | Jonathan Treffler <mail@jonathan-treffler.de> | 2020-08-10 15:25:09 +0200 |
---|---|---|
committer | Jonathan Treffler <mail@jonathan-treffler.de> | 2020-08-10 15:25:09 +0200 |
commit | dcbdde951b26ec54f65aea6c0eda667dfcb7d055 (patch) | |
tree | 8ad353a0071d6333f14383ca44f5f0b1c8bedf7e | |
parent | f5c91e629edc135627587ea07f169ec32e48ace5 (diff) |
imporved webpack config, to support images
Signed-off-by: Jonathan Treffler <mail@jonathan-treffler.de>
-rw-r--r-- | webpack.js | 17 |
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 |