Skip to content

feat: support for more semantic injection positions #501

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

Merged
merged 4 commits into from
Jul 13, 2022
Merged

feat: support for more semantic injection positions #501

merged 4 commits into from
Jul 13, 2022

Conversation

makkarpov
Copy link
Contributor

Specifying injection position as a simple integer can be both confusing and fragile. It requires you to manually count CSS files, and it's easy to forget about it when changing CSS settings.

This PR adds support for human-readable injection positions, that can be specified as:

  • Number, for backward-compatibility
  • 'first' and 'last' string literals
  • { after: 'existing-file.css' } object

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@atinux atinux merged commit 1bdd83c into nuxt-modules:main Jul 13, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants