Demonstrates Phase 1 dep analysis in action: computes per-page component bundles for all sx-docs pages using the deps.sx transitive closure algorithm, showing needed vs total components with visual progress bars. - New page at /plans/bundle-analyzer with Python data helper - New components: ~bundle-analyzer-content, ~analyzer-stat, ~analyzer-row - Linked from Phase 1 section and Plans nav - Added sx/sx/ to tailwind content paths Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
46 lines
1.8 KiB
JavaScript
46 lines
1.8 KiB
JavaScript
/** @type {import('tailwindcss').Config} */
|
||
module.exports = {
|
||
safelist: [
|
||
// ~menu-row-sx builds bg-{colour}-{shade} dynamically via (str ...)
|
||
// Levels 1–4 produce shades 400–100 (level 5+ yields 0 or negative = no match)
|
||
{ pattern: /^bg-sky-(100|200|300|400|500)$/ },
|
||
{ pattern: /^bg-violet-(100|200|300|400|500)$/ },
|
||
],
|
||
content: [
|
||
'/root/rose-ash/shared/sx/templates/**/*.sx',
|
||
'/root/rose-ash/shared/browser/templates/**/*.html',
|
||
'/root/rose-ash/blog/sx/**/*.sx',
|
||
'/root/rose-ash/blog/browser/templates/**/*.html',
|
||
'/root/rose-ash/market/sx/**/*.sx',
|
||
'/root/rose-ash/market/browser/templates/**/*.html',
|
||
'/root/rose-ash/cart/sx/**/*.sx',
|
||
'/root/rose-ash/cart/browser/templates/**/*.html',
|
||
'/root/rose-ash/events/sx/**/*.sx',
|
||
'/root/rose-ash/events/browser/templates/**/*.html',
|
||
'/root/rose-ash/federation/sx/**/*.sx',
|
||
'/root/rose-ash/federation/browser/templates/**/*.html',
|
||
'/root/rose-ash/account/sx/**/*.sx',
|
||
'/root/rose-ash/account/browser/templates/**/*.html',
|
||
'/root/rose-ash/orders/sx/**/*.sx',
|
||
'/root/rose-ash/orders/browser/templates/**/*.html',
|
||
'/root/rose-ash/shared/sx/helpers.py',
|
||
'/root/rose-ash/blog/sx/sx_components.py',
|
||
'/root/rose-ash/market/sx/sx_components.py',
|
||
'/root/rose-ash/cart/sx/sx_components.py',
|
||
'/root/rose-ash/events/sx/sx_components.py',
|
||
'/root/rose-ash/federation/sx/sx_components.py',
|
||
'/root/rose-ash/account/sx/sx_components.py',
|
||
'/root/rose-ash/orders/sx/sx_components.py',
|
||
'/root/rose-ash/sx/sx/**/*.sx',
|
||
'/root/rose-ash/sx/sxc/**/*.sx',
|
||
'/root/rose-ash/sx/sxc/sx_components.py',
|
||
'/root/rose-ash/sx/content/highlight.py',
|
||
],
|
||
theme: {
|
||
extend: {},
|
||
},
|
||
plugins: [
|
||
require('@tailwindcss/typography'),
|
||
],
|
||
}
|