You are here

public function ThemeGenerator::removeCssSourceMaps in AT Tools 8.2

Same name and namespace in other branches
  1. 8.3 at_theme_generator/src/Theme/ThemeGenerator.php \Drupal\at_theme_generator\Theme\ThemeGenerator::removeCssSourceMaps()

Remove CSS source map files.

1 call to ThemeGenerator::removeCssSourceMaps()
ThemeGeneratorTypes::starterkitGenerator in at_theme_generator/src/Theme/ThemeGeneratorTypes.php
Generate starter kit type theme.

File

at_theme_generator/src/Theme/ThemeGenerator.php, line 408

Class

ThemeGenerator
Generator form.

Namespace

Drupal\at_theme_generator\Theme

Code

public function removeCssSourceMaps() {
  $this->fileOperations
    ->fileDeleteByExtension($this->target . '/styles/css/components', 'map');

  // BC. Old themes may have maps in a folder.
  $dir = $this->target . '/styles/css/components/maps';
  if (is_dir($dir)) {
    $this->directoryOperations
      ->directoryRemove($dir);
  }
}