mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Added ability to protect comments when --no-comments options is use for CLI init command
This commit is contained in:
parent
48387a8f8a
commit
dbeeea4dbb
@ -28,7 +28,7 @@ export const optionMap = {
|
||||
*/
|
||||
function stripBlockComments(input) {
|
||||
return stripComments
|
||||
.block(input)
|
||||
.block(input, { keepProtected: true })
|
||||
.replace(/\n\s*\n\s*\n/g, '\n\n') // Strip unnecessary line breaks
|
||||
.trim()
|
||||
.concat('\n')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user