|
|
|
|
|
by verisimilidude
3408 days ago
|
|
abritinthebay's answer is the same thing I'm doing. Webpack can give you a hash on each use, which allows you to: * add that hash to the filename(s) of your generated assets; * print out that hash to a file; * fetch the hash from that file for use in your helpers/views, to call the correct assets. The following blog post is a good place to get started. http://pixelatedworks.com/articles/replacing-the-rails-asset... Whether or not this is better or worse than your current setup, I'm not sure. It's probably equal levels of duct tape either way. Printing out the hash and rolling your own solution gives you a bit more power and flexibility though. |
|