igaster / laravel-theme

Theme support for Laravel
MIT License
520 stars 113 forks source link

@css('path/to/file.css') no longer working #93

Closed leenooks closed 6 years ago

leenooks commented 6 years ago

Hi, It seems commit e2978f9a5aa has broken the interpretation of css('file.css') - it is not printed explicitly :( (I put a comment on the line in question - line 131.)

My head got messed up trying to play with the regex - hoping you might have a fix in a heartbeat :)

delejt commented 6 years ago

Hi

change this /\@css\s*\(\stheme_url([^),]*)(?:,\s*([^),]*))?(?:,\s*([^),]*))?\)/

to this /\@css\s*\(\s*([^),]*)(?:,\s*([^),]*))?(?:,\s*([^),]*))?\)/