eighteen73 / pulsar

WordPress starter theme with opinionated configuration.
MIT License
10 stars 0 forks source link

Asset paths #28

Closed brettsmason closed 4 months ago

brettsmason commented 1 year ago

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.

brettsmason commented 4 months ago

Fixed via https://github.com/eighteen73/pulsar/commit/b40f8a58d7722a6220d30ee49856e29064984946