2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-14 18:52:26 +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
@@ -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, '')