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(inspector): Allow including/excluding safelist in REPL #1532

Merged
merged 2 commits into from Sep 3, 2022
Merged

feat(inspector): Allow including/excluding safelist in REPL #1532

merged 2 commits into from Sep 3, 2022

Conversation

jd-solanki
Copy link
Contributor

Closes: #1530

Excluding safelist:
Screenshot 2022-09-03 at 9 51 50 AM

Including safelist:
Screenshot 2022-09-03 at 9 52 07 AM


P.S. There are no recommended extensions listed in .vscode. Moreover, if there's ESLint I suggest adding your eslint config as well.

@netlify
Copy link

netlify bot commented Sep 3, 2022

Deploy Preview for unocss failed.

Built without sensitive environment variables

Name Link
🔨 Latest commit 17a5d9e
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/6312e680b02a9100097edbd9

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
@jd-solanki
Copy link
Contributor Author

Thanks for the suggestions!

Done 👍🏻

@antfu
Copy link
Member

antfu commented Sep 3, 2022

Can you help testing if the new changes works for you?

@jd-solanki
Copy link
Contributor Author

testing if the new changes work for you

I linked unocss to fresh vuejs project and used this config:

Unocss({
    safelist: ['bg-red', 'opacity-50'],
    blocklist: ['bg-red'],
})

REPL:
Screenshot 2022-09-03 at 12 43 33 PM
Screenshot 2022-09-03 at 12 43 48 PM

Yes, It's working

@antfu antfu merged commit 1600b51 into unocss:main Sep 3, 2022
@antfu
Copy link
Member

antfu commented Sep 3, 2022

Thanks

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.

Allow removing safe listed classes from REPL
2 participants