Postingan lainnya
File Node_Modules di tailwindcss di hapus
disini saya baru saja menginstall tailwindcss lewat npm, dan mendapatkan folder yang bernama "NODE_MODULES"
apakah kalau folder "node_modules" itu di hapus fitur dari tailwindcss akan berkurang seperti mengambil di cdnjs?
Tanggapan
iya benar gan, bedanya kalau npm secara local
1 Jawaban:
Jawaban Terpilih
<div>node_modules adalah folder yang berisi package package yang kamu install dengan npm / yarn.<br><br>Tailwind sendiri kamu bisa pakai cdn, bisa juga install via npm, baca di <a href="https://tailwindcss.com/docs/installation">dokumentasi cara install tailwind</a> , jika kamu install via cdn:<br><br>Before using the CDN build, please note that many of the features that make Tailwind CSS great are not available without incorporating Tailwind into your build process: <br>You can't customize Tailwind's default theme <br><br></div><div>You can't use any <a href="https://tailwindcss.com/docs/functions-and-directives">directives</a> like @apply, @variants, etc. <br><br></div><div>You can't enable additional variants like <a href="https://tailwindcss.com/docs/hover-focus-and-other-states#group-focus">group-focus</a> <br><br></div><div>You can't install third-party plugins <br><br></div><div>You can't tree-shake unused styles<br><br></div>