Why can html.twig files be placed outside the templates folder?
Ok, I have found a solution, I just need to add in my settings.php the &quot;styleguide&quot; folder in the ignore directories
$settings['file_scan_ignore_directories'] = [
  'node_modules',
  'bower_components',
  'styleguide'
];