summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2019-07-29 15:25:35 -0500
committerMike Greiling <mike@pixelcog.com>2019-07-29 15:25:35 -0500
commit7d68ac70aa111ab17cfb01e12ace7fa09fedb90b (patch)
tree84e77ec8abe139fda5e1e0aea3d182916f6fd745 /config
parent7064d48e2b74d5a92a16278085f3a0b46274911d (diff)
downloadgitlab-ce-7d68ac70aa111ab17cfb01e12ace7fa09fedb90b.tar.gz
Use file-loader to import icon sprites
Diffstat (limited to 'config')
-rw-r--r--config/webpack.config.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index cd793743eb7..f00a9ac0df9 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -157,7 +157,15 @@ module.exports = {
loader: 'graphql-tag/loader',
},
{
+ test: /icons\.svg$/,
+ loader: 'file-loader',
+ options: {
+ name: '[name].[hash:8].[ext]',
+ },
+ },
+ {
test: /\.svg$/,
+ exclude: /icons\.svg$/,
loader: 'raw-loader',
},
{