kiliman / tailwindui-crawler

tailwindui-crawler downloads the component HTML files locally
MIT License
756 stars 94 forks source link

Blank vue components #33

Closed n10000k closed 3 years ago

n10000k commented 4 years ago
removed credentials..
OUTPUT=./output
VUE_OUTPUT=./vue
HTMLMODE=alpine|comments
TRANSFORMERS=convertVue
BUILDINDEX=1

Is generating blank vue components as:

<template>

</template>

<script>
export default {
  data: () => ({

  })
}
</script>
rodrigobello commented 4 years ago

I believe the alpine|comments in HTMLMODE means the variable should be either alpine or comments, not sure if it's a valid entry.

kiliman commented 4 years ago

Yes, true. HTMLMODE should be "alpine" OR "comments"

This determines whether the crawler processes the comments only code, or uses the "preview" code with the AlpineJS included. For Vue, I would go with alpine, since they are pretty compatible.