Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The first problem I see, is using any build process which will remove all the comments. Therefore your string will become ''. I wonder how to avoid this.


It's mainly intended for use in Node.js, but I've documented how to use it with a minifier for the front-end: https://github.com/sindresorhus/multiline#minification


There's a section on minification here: https://github.com/sindresorhus/multiline#minification




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: