From ef6caf361711b6fc155a85444f068a1edd36fb4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 31 Jul 2020 21:42:13 +0200 Subject: [PATCH] Keep url-loader for images MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- webpack.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/webpack.js b/webpack.js index fffccc536..65068d595 100644 --- a/webpack.js +++ b/webpack.js @@ -12,6 +12,17 @@ const config = { jsonpFunction: 'webpackJsonpOCADeck', chunkFilename: '[name].js?v=[contenthash]', }, + module: { + rules: [ + { + test: /\.(png|jpg|gif|svg)$/, + loader: 'url-loader', + options: { + name: '[name].[ext]?[hash]' + } + } + ] + }, resolve: { extensions: ['*', '.js', '.vue', '.json'], modules: [