Feedback on Tailwind Elements #1707
jiorpilla
started this conversation in
Kind words & general feedback
Replies: 1 comment 1 reply
-
Hi, when deploying your website, it's best to avoid directly accessing JavaScript files from the node_modules folder using a script tag. Instead, copy or move the necessary JavaScript files to a designated folder within your project. This ensures proper organization and accessibility. Treeshaking can be achieved with tools like Vite, Webpack, or Rollup. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Tailwind Elements team!
I just started using Tailwind Elements and I wanted to give some feedback.
Overall, I think it's a fantastic product and it's really helped me speed up my web development process.
I'm a beginner in NPM modules and I just want to confirm, is directly accessing JavaScript like this <script type="text/javascript" src="../node_modules/tw-elements/dist/js/tw-elements.umd.min.js"></script> okay? or are we recommended to copy/move the file once we deploy our finished website. is it not possible to have a treeshaking without vite?
Shout out to Michal & Dawid for starting this & great thanks to @Trochonovitz @juujisai @Martussky @smolenski-mikolaj for all the work put in the latest release!
Keep coding!
Beta Was this translation helpful? Give feedback.
All reactions