Skip to content

Commit eeb42cd

Browse files
committed
Provide our own rawCache to avoid performance issues
1 parent 0d333f2 commit eeb42cd

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/processTailwindFeatures.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,22 @@ export default function(getConfig) {
2929
substituteResponsiveAtRules(config),
3030
substituteScreenAtRules(config),
3131
substituteClassApplyAtRules(config, utilities),
32+
function (root, result) {
33+
root.rawCache = {
34+
colon: ': ',
35+
indent: ' ',
36+
beforeDecl: '\n',
37+
beforeRule: '\n',
38+
beforeOpen: ' ',
39+
beforeClose: '\n',
40+
beforeComment: '\n',
41+
after: '\n',
42+
emptyBody: '',
43+
commentLeft: ' ',
44+
commentRight: ' ',
45+
semicolon: false
46+
}
47+
},
3248
]).process(css, { from: _.get(css, 'source.input.file') })
3349
}
3450
}

0 commit comments

Comments
 (0)