Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export function format(css, { minify = false } = {}) {
parseValue: true,
})

const TAB = minify ? EMPTY_STRING : '\t'
const NEWLINE = minify ? EMPTY_STRING : '\n'
const OPTIONAL_SPACE = minify ? EMPTY_STRING : SPACE
const LAST_SEMICOLON = minify ? EMPTY_STRING : SEMICOLON
Expand All @@ -58,7 +57,7 @@ export function format(css, { minify = false } = {}) {
* @returns A string with {size} tabs
*/
function indent(size) {
return TAB.repeat(size)
return minify ? EMPTY_STRING : '\t'.repeat(size)
}

/**
Expand Down
Loading