Run perfectionist at end of PostCSS chain in place of stylefmt
This commit is contained in:
parent
4a74f31c33
commit
eea8b54dfe
1 changed files with 10 additions and 2 deletions
12
src/index.js
12
src/index.js
|
|
@ -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,
|
||||
}),
|
||||
]
|
||||
)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue