Skip to content

Commit 90d231b

Browse files
committed
Add CDN example and links
1 parent 9ff13ca commit 90d231b

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

examples/browser/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ <h3>HTML Content</h3>
1616
<h3>SASS Output</h3>
1717
<pre id="sass-output"></pre>
1818

19+
<!-- local -->
1920
<script src="./../../dist/umd/index.js"></script>
2021

22+
<!-- CDN -->
23+
<!-- <script src="https://unpkg.com/@egoistdeveloper/twcss-to-sass@2.0.0/dist/umd/index.js"></script> -->
24+
2125
<script>
2226
const { convertToSass } = TwCssToSass
2327

readme.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,24 @@ HTML template to SASS converter for TailwindCSS
66
[![NPM Bundle Size](https://img.shields.io/bundlephobia/minzip/@egoistdeveloper/twcss-to-sass)](https://www.npmjs.com/package/@egoistdeveloper/twcss-to-sass)
77
[![NPM](https://img.shields.io/npm/l/@egoistdeveloper/twcss-to-sass)](https://github.com/EgoistDeveloper/twcss-to-sass/blob/dev/LICENSE)
88

9-
## 🚀 Demo
10-
11-
### **[Demo](https://egoistdeveloper.github.io/twcss-to-sass/)**
9+
## 🚀 **[Demo](https://egoistdeveloper.github.io/twcss-to-sass/)**
1210

1311

1412
## 📦 Installation
15-
```bash
13+
14+
### NPM
15+
16+
```dsconfig
1617
npm i @egoistdeveloper/twcss-to-sass
1718
```
1819

20+
### CDN
21+
22+
```javascript
23+
<script src="https://unpkg.com/@egoistdeveloper/twcss-to-sass@2.0.0/dist/umd/index.js"></script>
24+
```
25+
26+
1927
## Input-Output
2028

2129
**Template Input**
@@ -63,8 +71,14 @@ npm i @egoistdeveloper/twcss-to-sass
6371

6472
## 🔰 Browser Example
6573

66-
```javascript
67-
<script src="./twcss-to-sass.js"></script>
74+
```html
75+
<!-- local -->
76+
<script src="./../../dist/umd/index.js"></script>
77+
78+
<!-- or -->
79+
80+
<!-- CDN -->
81+
<script src="https://unpkg.com/@egoistdeveloper/twcss-to-sass@2.0.0/dist/umd/index.js"></script>
6882

6983
<script>
7084
const { convertToSass } = TwCssToSass,

0 commit comments

Comments
 (0)