2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-11 17:12:25 +03:00

wrap cdn links in script tags

This commit is contained in:
Declan de Wet
2016-11-08 08:04:05 +02:00
parent 43e38eddf1
commit 6fbf0e1949
2 changed files with 12 additions and 4 deletions
+6 -2
View File
@@ -105,10 +105,14 @@ Use the links below - if you want a previous version, check the instructions at
<!-- start CDN generator - do **NOT** remove this comment -->
**Uncompressed:**
> https://unpkg.com/vue-meta@0.0.0/lib/vue-meta.js
```html
<script src="https://unpkg.com/vue-meta@0.0.0/lib/vue-meta.js"></script>
```
**Minified:**
> https://unpkg.com/vue-meta@0.0.0/lib/vue-meta.min.js
```html
<script src="https://unpkg.com/vue-meta@0.0.0/lib/vue-meta.min.js"></script>
```
<!-- end CDN generator - do **NOT** remove this comment -->
# Usage
+6 -2
View File
@@ -13,10 +13,14 @@ const content = readFileSync(readmePath, 'utf-8')
const update = `
<!-- start CDN generator - do **NOT** remove this comment -->
**Uncompressed:**
> ${cdnUrl}
\`\`\`html
<script src="${cdnUrl}"></script>
\`\`\`
**Minified:**
> ${minifiedUrl}
\`\`\`html
<script src="${minifiedUrl}"></script>
\`\`\`
<!-- end CDN generator - do **NOT** remove this comment -->
`.trim().replace(/ {2}/gm, '')