'How I can get svg file name after webpack?

How I can get name after webpack transform in vue 3?

Red - before, Black - after

I try to create dynamic path in computed method

  let iconPath = computed(() => {
    return `~@/assets/icons/${props.iconName}.svg#${props.iconName}`;
  });


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source