I know that L5 and Elixir are still under development, but I'm glad to start thinking about ways to reorganize my code. I think my question is more about asset management in the context of L5 and Elixir.
Want to explain how to handle concatenation and version control (in my case, I use Elixir styles() and version() ). The problem I am facing is that the new file after concat / version will be in the new folder, breaking any links to assets from the source css or js files.
For example, the original CSS file with background-image: url('../img.png') will no longer work. I tried a couple of things, but both of them are not perfect, especially in the case of vendor plugins:
- Move the required assets one at a time (using mix.copy () for each asset folder) to the new build path (i.e. the build path used by the Elixir version).
- Manually edit the paths in each asset file to reference the absolute path.
Despite the fact that both of these options will work, I feel that maybe something is missing. It also becomes quite impractical when working with javascript plugins (for example, with their own images, fonts, styles, etc.).
Is there a more practical way to manage relative paths in concatenation and version control?
source share