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:
4
mix.exs
4
mix.exs
@@ -100,12 +100,14 @@ defmodule Berrypod.MixProject do
|
||||
"compile",
|
||||
"esbuild berrypod",
|
||||
"esbuild berrypod_shop_css",
|
||||
"esbuild berrypod_admin_css"
|
||||
"esbuild berrypod_admin_css",
|
||||
"esbuild berrypod_theme_css"
|
||||
],
|
||||
"assets.deploy": [
|
||||
"esbuild berrypod --minify",
|
||||
"esbuild berrypod_shop_css --minify",
|
||||
"esbuild berrypod_admin_css --minify",
|
||||
"esbuild berrypod_theme_css --minify",
|
||||
"phx.digest"
|
||||
],
|
||||
precommit: ["compile --warning-as-errors", "deps.unlock --unused", "format", "test"],
|
||||
|
||||
Reference in New Issue
Block a user