extract shared theme CSS into standalone bundle
Move the 3 theme layer imports (primitives, layer2-attributes, semantic) out of admin.css and shop.css into a new theme.css bundle loaded by all root layouts. Eliminates 28 KB of duplication on admin pages where both admin.css and shop.css were each embedding the same theme CSS. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -35,7 +35,9 @@ config :berrypod, BerrypodWeb.Endpoint,
|
||||
esbuild_shop_css:
|
||||
{Esbuild, :install_and_run, [:berrypod_shop_css, ~w(--sourcemap=inline --watch)]},
|
||||
esbuild_admin_css:
|
||||
{Esbuild, :install_and_run, [:berrypod_admin_css, ~w(--sourcemap=inline --watch)]}
|
||||
{Esbuild, :install_and_run, [:berrypod_admin_css, ~w(--sourcemap=inline --watch)]},
|
||||
esbuild_theme_css:
|
||||
{Esbuild, :install_and_run, [:berrypod_theme_css, ~w(--sourcemap=inline --watch)]}
|
||||
]
|
||||
|
||||
# ## SSL Support
|
||||
|
||||
Reference in New Issue
Block a user