正規化字串 (normalizeString)
將字串使用雙引號(預設)或單引號的方式標準化,以獲得更好的 gzip 壓縮效果。也可以移除為了美觀而插入的換行符號。如果您偏好使用單引號,可以設定 preferredQuote: 'single'
。
範例
輸入
.box {
quotes: '«' "»";
content: 'This is a string which is \
broken over multiple lines.';
}
輸出
.box {
quotes: "«" "»";
content: "This is a string which is broken over multiple lines.";
}