Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Feature]: Formatting pure css/js blade files #884

Open
bilogic opened this issue Nov 15, 2024 · 0 comments
Open

[Feature]: Formatting pure css/js blade files #884

bilogic opened this issue Nov 15, 2024 · 0 comments
Assignees

Comments

@bilogic
Copy link

bilogic commented Nov 15, 2024

Description

  1. I sometimes generate CSS/JS that contain configuration by users.
  2. And I usually save them as style-css.blade.php, which renders as a style.css
  3. Likewise, script-js.blade.php, which renders into script.js

The problem is, these files cannot accept <style> nor <script> and as a result, this formatter does not know how to handle them.

Suggested Solution

Have flags {{-- js-formatter-enable --}} and {{-- js-formatter-disable --}} that formats everything in between as JS
Do the same for CSS

Alternatives

No response

Additional Context

No response

@bilogic bilogic changed the title [Feature]: Format as .css/.js [Feature]: Formatting pure css/js blade files Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant