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

Some improvements #1

Merged
merged 4 commits into from
Feb 28, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
cleanup unused variables
  • Loading branch information
RobinMalfait committed Feb 28, 2021
commit e05c2291cd72190db9bd3b87e8e9dea1ece98e6a
14 changes: 3 additions & 11 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const LRU = require('quick-lru')

const resolveConfig = require('tailwindcss/resolveConfig')
const escape = require('tailwindcss/lib/util/escapeClassName').default
const getAllConfigs = require('tailwindcss/lib/util/getAllConfigs').default
const evaluateTailwindFunctions = require('tailwindcss/lib/lib/evaluateTailwindFunctions').default

const corePlugins = require('./corePlugins')
Expand Down Expand Up @@ -151,14 +150,7 @@ function* candidatePermutations(prefix, modifier = '') {
}

function generateRules(tailwindConfig, candidates, context) {
let {
componentMap,
utilityMap,
variantMap,
classCache,
notClassCache,
postCssNodeCache,
} = context
let { componentMap, utilityMap, classCache, notClassCache, postCssNodeCache } = context

let layers = {
components: [],
Expand Down Expand Up @@ -342,7 +334,7 @@ function rebootTemplateWatcher(context) {
touch(context.touchFile.name)
})

context.watcher.on('change', (path, stats) => {
context.watcher.on('change', (path) => {
context.changedFiles.add('./' + path)
touch(context.touchFile.name)
})
Expand Down Expand Up @@ -452,7 +444,7 @@ function registerPlugins(tailwindConfig, plugins, context) {
offsets,
})

for (let pluginName in corePlugins) {
for (let pluginName in plugins) {
let plugin = corePlugins[pluginName]
if (Array.isArray(plugin)) {
for (let pluginItem of plugin) {
Expand Down