Currently, when you use .version() in elixir, it places the versioned files in the public/build/ directory, we all are used to this. However, source mapping ( sourceMappingURL ) support has just been added to javascript files, but the problem I am encountering is that the url that it generates is to the public/build/ directory but the .map file is in the non-build directory (where ever you have it outputting the original file)... this is causing a 404 error for every javascript/css files .map file.
Although this is not that big of a deal, I was wondering if anyone else has managed to fix it, and how?
I was thinking of writing an extension for elixir that will generate a rev-manifest.json file which only contains the hashes, and doesn't move versioned files to the /public/build/ directory upon using .version(), so when elixir is used via blade, it will only output something like all.css?TheHashString instead of creating a new file for every change.. this would stop the need to .gitignore these files as there will ever only be 1.
thoughts?
I just updated via NPM today and noticed the same. Your solution will also prevent it bloating the Git repo as the concatenated file is renamed rather than just amended. On the other hand, I'm sure that Git probably recognises this file rename and only stores the diff.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community