Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 35e5948

Browse files
committed
Add restriction file on clear command
1 parent f75955d commit 35e5948

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Command/ClearCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function configure()
3333
protected function execute(InputInterface $input, OutputInterface $output)
3434
{
3535
$finder = new Finder();
36-
$finder->files()->in(__DIR__ . '/../Resources/public/');
36+
$finder->files()->in(__DIR__ . '/../Resources/public/')->name('/(js$)|(css$)/');
3737

3838
foreach ($finder as $file) {
3939
unlink($file->getRealPath());

0 commit comments

Comments
 (0)