#1339·purgecss

[Bug]: [blocklist] can't remove [type='button'] selector

Author: chenqiangkobeCreated Mar 21, 2025Updated Mar 21, 2025
Labelsbug

Describe the bug

i I want to remove [type='button'] selector.

preflight.css: button, [type='button'], [type='reset'], [type='submit'] { -webkit-appearance: button; /* 1 / background-color: transparent; / 2 / background-image: none; / 2 */ } my postcss.config.js : blocklist: ['[type='button']', /^[type='button']/]

finally, [type='button'] exists in the index.css file. The blocklist configuration doesn't work, my blocklist expression is wrong?

To Reproduce

steps

Expected Behavior

expected behavior

Environment

environment

Add any other context about the problem here

context

Code of Conduct

  • I agree to follow this project's Code of Conduct