You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dp...@apache.org on 2018/05/24 12:51:55 UTC
[32/50] [abbrv] ignite git commit: IGNITE-8557 Web Console: Added
support for SVG images.
IGNITE-8557 Web Console: Added support for SVG images.
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/306f7786
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/306f7786
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/306f7786
Branch: refs/heads/ignite-5789-1
Commit: 306f778689e8a05a1487724a50d8ae61b8e4f5c4
Parents: 2be5295
Author: Dmitriy Shabalin <dm...@gmail.com>
Authored: Tue May 22 18:00:20 2018 +0700
Committer: Alexey Kuznetsov <ak...@apache.org>
Committed: Tue May 22 18:00:20 2018 +0700
----------------------------------------------------------------------
modules/web-console/frontend/webpack/webpack.common.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/306f7786/modules/web-console/frontend/webpack/webpack.common.js
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/webpack/webpack.common.js b/modules/web-console/frontend/webpack/webpack.common.js
index 3b9aef0..452206a 100644
--- a/modules/web-console/frontend/webpack/webpack.common.js
+++ b/modules/web-console/frontend/webpack/webpack.common.js
@@ -128,11 +128,16 @@ export default {
loader: 'file?name=assets/fonts/[name].[ext]'
},
{
- test: /.*\.svg$/,
+ test: /^(?:(?!url\.svg$).)*\.svg$/,
include: [contentBase, IgniteModules],
use: ['svg-sprite-loader']
},
{
+ test: /.*\.url\.svg$/,
+ include: [contentBase, IgniteModules],
+ loader: 'file?name=assets/fonts/[name].[ext]'
+ },
+ {
test: /\.(jpe?g|png|gif)$/i,
loader: 'file?name=assets/images/[name].[hash].[ext]'
},