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

feat(core)!: always apply default extractor #2472

Merged
merged 1 commit into from
Apr 9, 2023
Merged

Conversation

antfu
Copy link
Member

@antfu antfu commented Apr 9, 2023

This PR introduced extractorDefault option and make extractorSplit always applied. So when providing extractors, it no longer overrides the default, making the usage simpler. It means to use extractorPug or extractorSvelte, you no longer need to specify extractorSplit along side.

To force override the default extractor, users or presets could provide extractorDefault option:

// unocss.config.ts
import { defineConfig } from '@unocss/core'

export default defineConfig({
  extractors: [
    // your extractors
  ],
  // disable the default extractor
  extractorDefault: false,
  // override the default extractor with your own
  extractorDefault: myExtractor,
})

@netlify
Copy link

netlify bot commented Apr 9, 2023

Deploy Preview for unocss ready!

Name Link
🔨 Latest commit 09c05e9
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/64326a242e83780008e1f74c
😎 Deploy Preview https://deploy-preview-2472--unocss.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@antfu antfu merged commit 3af1e6e into main Apr 9, 2023
9 checks passed
@antfu antfu deleted the feat/default-extractor branch April 9, 2023 07:36
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

1 participant