add support for config files with .cjs extension (#198)
parent
e530f03739
commit
f9865fb219
|
@ -36,7 +36,7 @@
|
||||||
},
|
},
|
||||||
"icon": "media/icon.png",
|
"icon": "media/icon.png",
|
||||||
"activationEvents": [
|
"activationEvents": [
|
||||||
"workspaceContains:**/{tailwind,tailwind.config,tailwind-config,.tailwindrc}.js"
|
"workspaceContains:**/{tailwind,tailwind.config,tailwind-config,.tailwindrc}.{js,cjs}"
|
||||||
],
|
],
|
||||||
"main": "dist/extension/index.js",
|
"main": "dist/extension/index.js",
|
||||||
"contributes": {
|
"contributes": {
|
||||||
|
|
|
@ -24,7 +24,7 @@ function arraysEqual(arr1, arr2) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const CONFIG_GLOB =
|
const CONFIG_GLOB =
|
||||||
'**/{tailwind,tailwind.config,tailwind-config,.tailwindrc}.js'
|
'**/{tailwind,tailwind.config,tailwind-config,.tailwindrc}.{js,cjs}'
|
||||||
|
|
||||||
export default async function getClassNames(
|
export default async function getClassNames(
|
||||||
cwd = process.cwd(),
|
cwd = process.cwd(),
|
||||||
|
|
Loading…
Reference in New Issue