Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Commit 5a193da

Browse files
committed
Add notes for future self on prefix/important implementation
1 parent 4c56e53 commit 5a193da

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib/generateRules.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ function sortAgainst(toSort, against) {
139139

140140
function resolveMatches(candidate, context) {
141141
let [classCandidate, ...variants] = candidate.split(':').reverse()
142+
143+
// Strip prefix
144+
// md:hover:tw-bg-black
145+
142146
let matchedPlugins = resolveMatchedPlugins(classCandidate, context)
143147

144148
let sorted = sortAgainst(variants, context.variantMap)
@@ -198,6 +202,8 @@ function generateRules(candidates, context) {
198202

199203
let matches = resolveMatches(candidate, context)
200204

205+
// apply prefix and important here?
206+
201207
if (matches.length === 0) {
202208
context.notClassCache.add(candidate)
203209
continue

0 commit comments

Comments
 (0)