Skip to content

Commit

Permalink
Add copy support for woff2 font files
Browse files Browse the repository at this point in the history
  • Loading branch information
maartendekeizer committed Mar 18, 2016
1 parent 45d1b25 commit 630004a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Markei/Bootstrap3Bundle/Command/CopyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ protected function copyFiles(array $params, OutputInterface $output)
$params['dst_bootstrap_js'] => $params['src_bootstrap_js'],
$params['dst_jquery_js'] => $params['src_jquery_js'],
];
$fontFileFinder = Finder::create()->files()->name('*.eot')->name('*.ttf')->name('*.woff')->name('*.svg')->in($params['src_bootstrap_fonts']);
$fontFileFinder = Finder::create()->files()->name('*.eot')->name('*.ttf')->name('*.woff')->name('*.woff2')->name('*.svg')->in($params['src_bootstrap_fonts']);
foreach ($fontFileFinder as $fontFile) {
$listOfFilesToCopy[$params['dst_bootstrap_fonts'] . DIRECTORY_SEPARATOR . $fontFile->getFileName()] = $fontFile->getPathName();
}
Expand All @@ -219,4 +219,4 @@ protected function copyFiles(array $params, OutputInterface $output)

return true;
}
}
}

0 comments on commit 630004a

Please sign in to comment.