From b0ba7c72de0a864b01ec1c4be626a8a233a9009f Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Mon, 29 Jul 2019 15:25:59 -0500 Subject: Override icons.svg asset path with sprockets asset --- config/webpack.config.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config/webpack.config.js') diff --git a/config/webpack.config.js b/config/webpack.config.js index f00a9ac0df9..c497a6e88f8 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -89,6 +89,12 @@ const alias = { // the following resolves files which are different between CE and EE ee_else_ce: path.join(ROOT_PATH, 'app/assets/javascripts'), + + // override loader path for icons.svg so we do not duplicate this asset + '@gitlab/svgs/dist/icons.svg': path.join( + ROOT_PATH, + 'app/assets/javascripts/lib/utils/icons_path.js', + ), }; if (IS_EE) { -- cgit v1.2.3