Asset paths within CSS files are a pain currently, as you need to pass in a relative path based on the files output destination. So for a normal CSS file this may be ../../assets/svg/my-svg.svg, were as for a block CSS file it would be ../../../assets/svg/my-svg.svg.
Look in to Webpack aliases with CSS and if we could write something like ~assets/svg/my-svg.svg instead, regardless of where you are.
Asset paths within CSS files are a pain currently, as you need to pass in a relative path based on the files output destination. So for a normal CSS file this may be
../../assets/svg/my-svg.svg
, were as for a block CSS file it would be../../../assets/svg/my-svg.svg
.Look in to Webpack aliases with CSS and if we could write something like
~assets/svg/my-svg.svg
instead, regardless of where you are.