Skip to content

Remove unreferenced assets - #795

Open
rwojsznis wants to merge 1 commit into
lookbook-hq:mainfrom
rwojsznis:remove-unreferenced-public-assets
Open

Remove unreferenced assets#795
rwojsznis wants to merge 1 commit into
lookbook-hq:mainfrom
rwojsznis:remove-unreferenced-public-assets

Conversation

@rwojsznis

Copy link
Copy Markdown

Those asses are part of gem which bloats its size a bit.

Ideally build command should do initial cleanup of public folder - but that's out of scope of this PR.


Hey there 👋 as per comment - seems like some lost assets are part of the gem - noticed this as I was looking way to shave some MBs of my CI gemfile cache ;)

after the change:

ls -lgo public/lookbook-assets/
total 1248
drwxr-xr-x@ 5      160 Apr 26 21:13 css/
drwxr-xr-x@ 3       96 Apr 26 21:13 img/
-rw-r--r--@ 1   245036 Apr 26 21:12 Inter-italic.var.69eb0fe1.woff2
-rw-r--r--@ 1   227180 Apr 26 21:12 Inter-roman.var.b695afbe.woff2
drwxr-xr-x@ 8      256 Apr 26 21:13 js/
-rw-r--r--@ 1    72064 Apr 26 21:12 SourceCodeVariable-Italic.ttf.09b4354a.woff2
-rw-r--r--@ 1    86028 Apr 26 21:12 SourceCodeVariable-Roman.ttf.118e9f22.woff2

I'm also unsure about sourcemaps which are generated for both js and css files - maybe those should/could be yanked as well?

Those asses are part of gem which bloats its size a bit.

Ideally `build`` command should do initial cleanup of public folder -
but that's out of scope of this PR.
@netlify

netlify Bot commented Apr 26, 2026

Copy link
Copy Markdown

Deploy Preview for lookbook-docs canceled.

Name Link
🔨 Latest commit 7b36a03
🔍 Latest deploy log https://app.netlify.com/projects/lookbook-docs/deploys/69ee6556e4908c00082eac70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant