Hacker News new | ask | show | jobs
by TeMPOraL 5319 days ago
I'm no expert in webdev, but while CSS comments may be useful for maintenance and for new team members, they are also a waste of bandwidth. I'm honestly curious, what HN webdevs do with comments in CSS - do you use them, or not, or maybe have some deployment scripts that strip comments off?
2 comments

Ideally, you would use a tool like less or sass to generate your css (which we don't), so your comments would be in the underlying file but not in the css given to the user.
Of course web devs use them, but like you said it's a waste of bandwidth so the production version should be minified and combined.