clear require cache before reading tailwind config

master
Brad Cornes 2018-08-25 00:10:30 +01:00
parent 481b8b1aa4
commit 7f77a9ebfa
1 changed files with 1 additions and 0 deletions

View File

@ -68,6 +68,7 @@ async function getTailwind() {
if (!files.length) return null if (!files.length) return null
let configPath = files[0].fsPath let configPath = files[0].fsPath
delete require.cache[configPath]
let tailwindPackage = await vscode.workspace.findFiles( let tailwindPackage = await vscode.workspace.findFiles(
'**/node_modules/tailwindcss/package.json', '**/node_modules/tailwindcss/package.json',