Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2019-07-29 23:25:35 +0300
committerMike Greiling <mike@pixelcog.com>2019-07-29 23:25:35 +0300
commit7d68ac70aa111ab17cfb01e12ace7fa09fedb90b (patch)
tree84e77ec8abe139fda5e1e0aea3d182916f6fd745 /config/webpack.config.js
parent7064d48e2b74d5a92a16278085f3a0b46274911d (diff)
Use file-loader to import icon sprites
Diffstat (limited to 'config/webpack.config.js')
-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',
},
{