Skip to content

Commit

Permalink
Provide our own rawCache to avoid performance issues
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Jan 14, 2019
1 parent 0d333f2 commit eeb42cd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/processTailwindFeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') })
}
}

0 comments on commit eeb42cd

Please sign in to comment.