From 2f63a5433195745c2d24036640c215901e777c1c Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Mon, 17 Jul 2023 16:26:15 -0300 Subject: [PATCH] Add rule to make possible import raw svg Signed-off-by: Vitor Mattos --- webpack.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index b0f3d62..f254559 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -11,6 +11,14 @@ module.exports = merge(nextcloudWebpackConfig, { port: 3000, // use any port suitable for your configuration host: '0.0.0.0', // to accept connections from outside container }, + module: { + rules: [ + { + resourceQuery: /raw/, + type: 'asset/source', + }, + ], + }, resolve: { alias: { apps: path.resolve(__dirname, '../../apps'),