David,
The reason this is done is because of a couple off factors:
1. The `/resources/assets` directory is typically removed from production packages
2. The relative paths to the `/resources` version of the image may be outside of the webroot, depending on the pack and the way you have it configured.
That said, I’ve never experienced the issue you are describing with CSS assets disappearing and then not being re-copied on a change, and I use Elixir day in/out. This may be a bug, or it may be a configuration issue with the relative paths. You may want to
report that as an issue on the Github repo.
You have another option, as well, which is to normalize any images referenced in your CSS file in as base64 ( you can also do this with fonts ). You can see this in the Relax repo -
https://github.com/coldbox-modules/relax/blob/development/webpack.config.js#L19 – where any font or image under 100000 bytes is automatically normalized as base64 in to the CSS file.
That’s not always ideal and makes your CSS much bigger, depending on how many images you use, but it is an option.
HTH,
Jon
--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit
https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
coldbox+u...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/coldbox/e52a7997-e9c5-40f1-a288-0b6d746a041cn%40googlegroups.com.