You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- `RegExp` - Preserve comments where the comment body matches a regular expression.
7
-
- `Function` - Preserve comments for which a function returns `true`. The function is called on each comment, gets the comment body as the first argument, and is expected to return a boolean of whether to preserve the comment.
Replace comments with whitespace instead of stripping them entirely.
15
-
16
-
@default true
17
-
*/
18
-
readonlywhitespace?: boolean;
19
-
}
1
+
exportinterfaceOptions{
2
+
/**
3
+
- `true` - Preserve important comments `/*! *\/`.
4
+
- `false` - Strip all comments.
5
+
- `RegExp` - Preserve comments where the comment body matches a regular expression.
6
+
- `Function` - Preserve comments for which a function returns `true`. The function is called on each comment, gets the comment body as the first argument, and is expected to return a boolean of whether to preserve the comment.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
0 commit comments