rogden / tailwind-config-viewer

A local UI tool for visualizing your Tailwind CSS configuration file.
1.98k stars 110 forks source link

Wrong css and js paths when viewer is used as sub directory #53

Open manuelmeindl opened 2 years ago

manuelmeindl commented 2 years ago

I want to use tailwind config viewer on a stage environment by using the export functionality. The problem I'm facing is that I want to use tailwind config viewer in a sub directory of my /dist folder. In my dist there is the .html file and also /css and /js directories for my project. When opening the tailwind config index.html which is located in /dist/tailwind-config-viewer it tries to access the .css and .js files from /dist/css and /dist/js becaufe of the relative paths.

It would be good to have a way to tell the config viewer to look in another directory for that.