Complete the code to include Tailwind CSS using CDN in your HTML.
<head> <link href="https://unpkg.com/tailwindcss/dist[1]" rel="stylesheet"> </head>
Using the CDN link requires the path to the minified Tailwind CSS file, which is /tailwind.min.css.
Complete the code to configure Tailwind CSS build tool to scan your HTML files.
module.exports = {
content: [[1]],
theme: {
extend: {},
},
plugins: [],
}The content array should include paths to your source HTML and JS files so Tailwind can purge unused styles.
Fix the error in this Tailwind build script to generate the CSS file.
npx tailwindcss -i ./src/input.css -o ./dist/output.css [1]The --watch flag tells Tailwind to watch for file changes and rebuild automatically.
Fill both blanks to describe the main difference between CDN and build tool usage of Tailwind CSS.
CDN usage is [1] and build tool usage is [2].
Using Tailwind via CDN is quick to start but using a build tool requires compilation for optimized CSS.
Fill all three blanks to complete the benefits of using a build tool over CDN for Tailwind CSS.
Build tools provide [1], [2], and [3] CSS output.
Build tools allow smaller file sizes, customization of styles, and faster load times compared to CDN usage.