Closed ortuagustin closed 4 years ago
I've opened a PR here: https://github.com/rogden/tailwind-config-viewer/pull/10
Thanks for the report @ortuagustin ! Will look into shortly.
@ortuagustin Thanks for the PR. I believe the fix for the issue is slightly different than what you were suggesting in the PR. The ./dist
directory that is to be copied into the specified outputDir
needs to be the dist
directory from within the tailwind-config-viewer package and not the current working directory. This directory contains the html/js etc that is used when you run the default serve command. The intention was to copy those files into the build outputDir to use for statically serving the app.
The issue you were experiencing should be fixed in v1.1.3. If there is another issue related to your PR let me know and thanks again for reporting the issue, much appreciated!
Thanks for this work, it's a really cool idea :+1:
When exporting the viewer to a static site, using
tailwind-config-viewer export
CLI, it expects your build directory to be./dist
, seehttps://github.com/rogden/tailwind-config-viewer/blob/decc9b923fa1ab41328e41cd765f1ffc45d99558/cli/export.js#L18
If you have any other build dir, say
./public
, you get this: