const fs = require('fs');

const files = ['dist/index.html', 'dist/assets/index-ShJgT0RF.css'];
files.forEach(f => {
  if (fs.existsSync(f)) {
    const content = fs.readFileSync(f, 'utf8');
    let idx = 0;
    while ((idx = content.toLowerCase().indexOf('simulasi', idx)) !== -1) {
      console.log(`Found 'simulasi' in ${f} at index ${idx}`);
      idx += 8;
    }
  }
});
