Provide our own rawCache to avoid performance issues
This commit is contained in:
parent
0d333f2241
commit
eeb42cd6bb
1 changed files with 16 additions and 0 deletions
|
|
@ -29,6 +29,22 @@ export default function(getConfig) {
|
|||
substituteResponsiveAtRules(config),
|
||||
substituteScreenAtRules(config),
|
||||
substituteClassApplyAtRules(config, utilities),
|
||||
function (root, result) {
|
||||
root.rawCache = {
|
||||
colon: ': ',
|
||||
indent: ' ',
|
||||
beforeDecl: '\n',
|
||||
beforeRule: '\n',
|
||||
beforeOpen: ' ',
|
||||
beforeClose: '\n',
|
||||
beforeComment: '\n',
|
||||
after: '\n',
|
||||
emptyBody: '',
|
||||
commentLeft: ' ',
|
||||
commentRight: ' ',
|
||||
semicolon: false
|
||||
}
|
||||
},
|
||||
]).process(css, { from: _.get(css, 'source.input.file') })
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue