INNER CODE UNIT · JavaScript

main

o19s/quepid · build_css.js:167

function main() {
  const isWatchMode = process.argv.includes('--watch');
  
  // Initial build
  buildAllCSS();
  
  if (isWatchMode) {
    console.log('Watching for CSS changes...');
    
    try {
      const chokidar = require('chokidar');
      
      let debounceTimer;
      const DEBOUNCE_DELAY = 300; // Wait 300ms before rebuilding
      
      const watcher = chokidar.watch(WATCH_PATHS, {
        ignored: [/(^|[\/\\])\./, 'node_modules/.bin', 'app/assets/builds'],
        persistent: true,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…