summaryrefslogtreecommitdiff
path: root/app/assets
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 /app/assets
parent7064d48e2b74d5a92a16278085f3a0b46274911d (diff)
downloadgitlab-ce-7d68ac70aa111ab17cfb01e12ace7fa09fedb90b.tar.gz
Use file-loader to import icon sprites
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/vue_shared/components/icon.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/vue_shared/components/icon.vue b/app/assets/javascripts/vue_shared/components/icon.vue
index 41c4c861566..fa89473da62 100644
--- a/app/assets/javascripts/vue_shared/components/icon.vue
+++ b/app/assets/javascripts/vue_shared/components/icon.vue
@@ -1,4 +1,6 @@
<script>
+import iconsPath from '@gitlab/svgs/dist/icons.svg';
+
// only allow classes in images.scss e.g. s12
const validSizes = [8, 10, 12, 14, 16, 18, 24, 32, 48, 72];
let iconValidator = () => true;
@@ -84,7 +86,7 @@ export default {
computed: {
spriteHref() {
- return `${gon.sprite_icons}#${this.name}`;
+ return `${iconsPath}#${this.name}`;
},
iconTestClass() {
return `ic-${this.name}`;