ant-design / ant-design/cssinjs
可以添加一个hashPrefix属性能自定义前缀吗
- Dominant language
- TypeScript
- Stars
- 287
- Forks
- 80
- PR merge metrics
- No merged PRs in 30d
Description
// Generate different prefix to make user selector break in production env.
// This helps developer not to do style override directly on the hash id.
var hashPrefix = process.env.NODE_ENV !== 'production' ? 'css-dev-only-do-not-override' : 'css';
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the TypeScript entry point that creates the hash id and tracing how NODE_ENV selects the current prefix. Define how a hashPrefix option should interact with the development and production defaults, then add coverage for custom and default behavior; done means selectors use the configured prefix without breaking existing defaults.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100