Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: support multiple css file extensions in development #213

Merged
merged 3 commits into from
Feb 27, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,13 @@ protected function createDevelopmentTag(string $path): string
{
$url = Str::of($this->config('dev_server.url'))->finish('/')->append($path);

if (Str::endsWith($path, '.css')) {
if (Str::endsWith($path, '.css')
|| Str::endsWith($path, '.scss')
|| Str::endsWith($path, '.sass')
|| Str::endsWith($path, '.less')
|| Str::endsWith($path, '.styl')
|| Str::endsWith($path, '.stylus')
) {
NeonGC marked this conversation as resolved.
Show resolved Hide resolved
return $this->tagGenerator->makeStyleTag($url);
}

Expand Down