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

@charset must precede all other statements in Oruga Default Theme CSS #89

Open
wyxos opened this issue Jan 18, 2025 · 0 comments
Open

Comments

@wyxos
Copy link

wyxos commented Jan 18, 2025

Description

When building a project with Vite, an error occurs due to the placement of @charset in the Oruga Default Theme CSS file.

Steps to Reproduce

  1. Create a project using Vite.
  2. Install the Oruga theme package (version 0.5.1).
  3. Include the Oruga theme in the project (tailwind + postcss)
  4. Run vite build for production.
  5. The following error is displayed:
    [vite:css] @charset must precede all other statements
    

Expected Behavior

The @charset declaration should appear at the very top of the CSS file, as required by CSS specifications, to prevent build errors.

Actual Behavior

The @charset declaration is not at the top of the CSS file, causing the build to contain the warning.

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