77 lines
No EOL
1.8 KiB
TOML
77 lines
No EOL
1.8 KiB
TOML
# Build Configuration for Page Optimization System
|
|
# This file configures the build process for optimizing web pages
|
|
|
|
[directories]
|
|
# Source and output directories
|
|
src_dir = "src"
|
|
dist_dir = "dist"
|
|
|
|
# Asset directories
|
|
css_src = "src/assets/css"
|
|
css_dist = "dist/assets/css"
|
|
svg_src = "src/assets/svg"
|
|
svg_dist = "dist/assets/svg"
|
|
|
|
[output]
|
|
# Output file names
|
|
css_output = "main.min.css"
|
|
html_output = "index.html"
|
|
svg_sprites = "sprites.svg"
|
|
|
|
[css]
|
|
# CSS modules in order of importance (for critical CSS)
|
|
modules = [
|
|
"modules/base.css", # Reset, typography, layout basics
|
|
"modules/components.css", # UI components and title styling
|
|
"modules/animations.css", # All animation keyframes
|
|
"modules/patterns.css" # Visual patterns and backgrounds
|
|
]
|
|
|
|
# Critical CSS settings - first N modules will be inlined
|
|
critical_modules = 2
|
|
|
|
# CSS optimization settings
|
|
minify = true
|
|
remove_comments = true
|
|
compress_selectors = true
|
|
|
|
[svg]
|
|
# SVG optimization settings
|
|
optimize = true
|
|
precision = 2 # Decimal precision for SVG numbers
|
|
|
|
[html]
|
|
# HTML optimization settings
|
|
minify = true
|
|
remove_comments = true
|
|
remove_whitespace = true
|
|
|
|
[development]
|
|
# Development server settings
|
|
port = 8080
|
|
host = "localhost"
|
|
|
|
[thresholds]
|
|
# File size thresholds (bytes)
|
|
inline_css_max_size = 10240 # 10KB max for critical CSS inline
|
|
inline_svg_max_size = 5120 # 5KB max for SVG inline
|
|
max_total_size = 102400 # 100KB warning threshold
|
|
|
|
[compression]
|
|
# Compression settings
|
|
enable_gzip = true
|
|
enable_brotli = false # Requires external tool
|
|
gzip_ratio = 0.3 # Estimated compression ratio
|
|
|
|
[cache]
|
|
# Cache busting settings
|
|
cache_bust = true
|
|
cache_bust_length = 8
|
|
|
|
[output_control]
|
|
# Output verbosity
|
|
verbose = true
|
|
show_file_sizes = true
|
|
|
|
# Build optimization
|
|
parallel_builds = true |