Run perfectionist at end of PostCSS chain in place of stylefmt

This commit is contained in:
Keith Damiani 2018-01-18 22:58:08 -05:00
parent 4a74f31c33
commit eea8b54dfe

View file

@ -2,7 +2,7 @@ import path from 'path'
import _ from 'lodash'
import postcss from 'postcss'
import stylefmt from 'stylefmt'
import perfectionist from 'perfectionist'
import registerConfigAsDependency from './lib/registerConfigAsDependency'
import substituteTailwindPreflightAtRule from './lib/substituteTailwindPreflightAtRule'
@ -41,7 +41,15 @@ const plugin = postcss.plugin('tailwind', config => {
substituteResponsiveAtRules(lazyConfig),
substituteScreenAtRules(lazyConfig),
substituteClassApplyAtRules(lazyConfig),
stylefmt,
perfectionist({
cascade: false,
colorShorthand: false,
indentSize: 2,
maxSelectorLength: 1,
maxValueLength: false,
trimLeadingZero: false,
trimTrailingZeros: false,
}),
]
)
})