You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on switching the Bullet Train starter repo from sprockets to propshaft and I've found that the avo gem produces a lot of assets during precompilation.
I've done a little bit of testing after excluding these paths and things seem to be working as expected. It seems like avo is including a ton of .svg files that aren't actually used for anything.
Impact
High impact (It makes my app un-usable.)
Medium impact (I'm annoyed, but I'll live.)
Low impact (It's really a tiny thing that I could live with.)
Urgency
High urgency (I can't continue development without it.)
Medium urgency (I found a workaround, but I'd love to have it fixed.)
Low urgency (It can wait. I just wanted you to know about it.)
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm working on switching the Bullet Train starter repo from
sprockets
topropshaft
and I've found that theavo
gem produces a lot of assets during precompilation.Reproduction repository for the bug
The branch I'm working on: https://github.com/bullet-train-co/bullet_train/tree/jeremy/propshaft
The PR for that branch: bullet-train-co/bullet_train#1910
Steps to use in the reproduction repository
Remove or comment out these lines: https://github.com/bullet-train-co/bullet_train/blob/011a9e6327b4de8efbe5eb1d46a1e6c9c6ccb730/config/initializers/assets.rb#L8-L11
Run
rails assets:precompile
.Then run
tree public/assets/avo
andtree pubic/assets/heroicons
.You'll see that there are a lot of
.svg
files in theavo
andheroicons
directories.Expected behavior & Actual behavior
I would expect those files not to be there.
System configuration
Avo version: 3.17.2
Rails version: 8.0.1
Ruby version: 3.4.1
License type:
Are you using Avo monkey patches, overriding views or view components?
Screenshots or screen recordings
Here's a link to a gist showing the differences in
public/assets
after precompiling betweensprockets
andpropshaft
: https://gist.github.com/jagthedrummer/f38a0c00879fe34c795e0ff3fd152734Additional context
I found that I can work around it by explicitly adding several
avo
directories to theassets.excluded_paths
config.I've done a little bit of testing after excluding these paths and things seem to be working as expected. It seems like
avo
is including a ton of.svg
files that aren't actually used for anything.Impact
Urgency
The text was updated successfully, but these errors were encountered: