Best Products
Launches
Launch archive
Most-loved launches by the community
Launch Guide
Checklists and pro tips for launching
News
Newsletter
The best of Product Hunt, every day
Stories
Tech news, interviews, and tips from makers
Changelog
New Product Hunt features and releases
Forums
Forums
Ask questions, find support, and connect
Kitty Points Leaderboard
The highest scoring community members
Streaks
The most active community members
Events
Meet others online and in-person
Advertise
Subscribe
Sign in
Clear text
recent
p/self-promotion
by
Andrew Gabaraev
•
1mo ago
I built a Vite plugin that saves CSS changes directly to your source files
... element as HTMLElement).style kept the overwritten inline values, which overrode the restored styles from the file. CSS specificity: inline styles always win over stylesheet rules. Fix explicitly clear the inline property on rollback: (selected as HTMLElement).style.setProperty(prop,
oldValue
); // or if
oldValue
0
1
Subscribe
Sign in