Permalink
Browse files

Provide our own rawCache to avoid performance issues

  • Loading branch information...
adamwathan committed Jan 11, 2019
1 parent a7790ab commit 00c6bd0844e09987a6d7a67e2c9c43b2db072163
Showing with 16 additions and 0 deletions.
  1. +16 −0 src/processTailwindFeatures.js
@@ -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 00c6bd0

Please sign in to comment.