64 lines
No EOL
1.5 KiB
Text
64 lines
No EOL
1.5 KiB
Text
# Build configuration for Provisioning Poster
|
|
# Nushell configuration file
|
|
|
|
export const config = {
|
|
# Source and destination 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 files
|
|
css_output: "main.min.css",
|
|
html_output: "index.html",
|
|
svg_sprites: "sprites.svg",
|
|
|
|
# CSS modules in order of importance (for critical CSS)
|
|
css_modules: [
|
|
"modules/base.css",
|
|
"modules/components.css",
|
|
"modules/animations.css",
|
|
"modules/patterns.css"
|
|
],
|
|
|
|
# Critical CSS that should be inlined (first N modules)
|
|
critical_css_modules: 2,
|
|
|
|
# SVG optimization settings
|
|
svg_optimize: true,
|
|
svg_precision: 2,
|
|
|
|
# HTML minification settings
|
|
html_minify: true,
|
|
remove_comments: true,
|
|
remove_whitespace: true,
|
|
|
|
# CSS minification settings
|
|
css_minify: true,
|
|
remove_css_comments: true,
|
|
compress_selectors: true,
|
|
|
|
# Development server settings
|
|
dev_port: 8080,
|
|
dev_host: "localhost",
|
|
|
|
# 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
|
|
|
|
# Compression settings
|
|
enable_gzip: true,
|
|
enable_brotli: false, # Requires external tool
|
|
|
|
# Cache busting
|
|
cache_bust: true,
|
|
cache_bust_length: 8,
|
|
|
|
# Output verbosity
|
|
verbose: true,
|
|
show_file_sizes: true
|
|
} |