theron-wang / VS2022-Editor-Support-for-Tailwind-CSS

Unofficial VS2022 Tailwind CSS extension for IntelliSense, linting, sorting, and more to enhance the development experience in Visual Studio 2022.
https://marketplace.visualstudio.com/items?itemName=TheronWang.TailwindCSSIntellisense
MIT License
86 stars 5 forks source link

[Feature request] Define another location for package.json and package-lock.json files #47

Closed RemiCELLARD closed 3 months ago

RemiCELLARD commented 3 months ago

Hello,

I'd like to know if it's possible to add an extra parameter in the tailwind.extension.json file to configure the location of the package.json file? In the extension code, this is referenced according to the location of the tailwind.config.js file. However, my tailwind.config.js file is in a different directory from the package.json file.

Example:

{
"TailwindConfigurationFile":"tailwind\\tailwind.config.js",
"PackageConfigurationFile":"package.json",
"InputCssFile":null,
"OutputCssFile":null,
"UseCli":false
}

Thank you

theron-wang commented 3 months ago

Added in 1.4.1; thanks for the suggestion!