How to switch from tailwind CSS Play CDN to production build

0 votes

For local development, I'm using Tailwind CSS Play CDN, and I'd like to construct a production version with PostCSS.

Basically, I have to manually replace the following code in index.html every time.

<script src="https://cdn.tailwindcss.com"></script>

with

<link href="/dist/main.css" rel="stylesheet">

before deploying to the production environment

What is the most efficient approach to accomplish this every time I publish a website?

Jun 17, 2022 in CSS by Edureka
• 12,890 points
732 views

1 answer to this question.

0 votes

 you need to use build tools like webpack, Rollup, Vite, and Parcel

answered Jun 17, 2022 by Edureka
• 11,450 points

Related Questions In CSS

0 votes
0 answers

How to line-break from css, without using <br />?

How to achieve the same output without <br>? <p>hello ...READ MORE

Jul 22, 2022 in CSS by Edureka
• 12,890 points
65 views
0 votes
0 answers

how to use fontAwesome icon from css

Can I use the font-awesome icon with ...READ MORE

Jul 29, 2022 in CSS by Edureka
• 12,890 points
172 views
0 votes
0 answers

Magento 2: How to remove styles-m.css from category and product page

How to delete the styles-l.css and styles-m.css ...READ MORE

Aug 18, 2022 in CSS by Edureka
• 12,890 points
144 views
0 votes
1 answer

How to set Bullet colors in UL/LI html lists via CSS without using any images or span tags

I use jQuery for this: jQuery('li').wrapInner('<span class="li_content" />'); & ...READ MORE

answered May 27, 2022 in CSS by Edureka
• 11,450 points
320 views
0 votes
2 answers

Define a SQL query? What is the difference between SELECT and UPDATE Query? How do you use SQL in SAS?

HI.. SQL is Structured Query Language, which is ...READ MORE

answered Aug 8, 2020 in PHP by anonymous
5,928 views
0 votes
1 answer

Using/Handling colon inside a JSF generated HTML element ID in CSS selector

Yes, you can.  Just Backslash (\) the colon.  Like ...READ MORE

answered Nov 14, 2018 in Others by DataKing99
• 8,240 points
1,876 views
0 votes
1 answer

What is a css selector and where is it used?

CSS Selector is a combination of element ...READ MORE

answered Nov 21, 2018 in Data Analytics by Kalgi
• 52,350 points
362 views
0 votes
1 answer

How to build a special polygon (a kite shape) with HTML & CSS only?

I made two divs, one for Arc ...READ MORE

answered May 28, 2022 in CSS by Edureka
• 11,450 points
427 views
0 votes
1 answer

How to add new colors to tailwind-css and keep the original ones?

You can easily add new colors to Tailwind ...READ MORE

answered Jun 21, 2022 in CSS by Edureka
• 11,450 points
1,165 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP