@curenorway/kode-cli 1.3.6 → 1.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -384,10 +384,10 @@ Cure Kode is an **internal CDN tool by Cure Norway** for managing JavaScript/CSS
|
|
|
384
384
|
|
|
385
385
|
### CDN URL
|
|
386
386
|
|
|
387
|
-
Add this to Webflow \u2192 Project Settings \u2192 Custom Code \u2192
|
|
387
|
+
Add this to Webflow \u2192 Project Settings \u2192 Custom Code \u2192 Body Code (before \`</body>\`):
|
|
388
388
|
|
|
389
389
|
\`\`\`html
|
|
390
|
-
<script
|
|
390
|
+
<script defer src="https://app.cure.no/api/cdn/${slug}/init.js"></script>
|
|
391
391
|
\`\`\`
|
|
392
392
|
|
|
393
393
|
### Workflow
|
|
@@ -459,13 +459,13 @@ Cure Kode is an **internal CDN tool by Cure** for managing JavaScript/CSS on Web
|
|
|
459
459
|
|
|
460
460
|
## CDN URL (Add to Webflow)
|
|
461
461
|
|
|
462
|
-
Add this script tag to your Webflow site's **Custom Code** (Project Settings \u2192 Custom Code \u2192
|
|
462
|
+
Add this script tag to your Webflow site's **Custom Code** (Project Settings \u2192 Custom Code \u2192 Body Code, before \`</body>\`):
|
|
463
463
|
|
|
464
464
|
\`\`\`html
|
|
465
|
-
<script
|
|
465
|
+
<script defer src="https://app.cure.no/api/cdn/${slug}/init.js"></script>
|
|
466
466
|
\`\`\`
|
|
467
467
|
|
|
468
|
-
**Important**: Use \`
|
|
468
|
+
**Important**: Use \`defer\` to ensure DOM is ready before scripts run. The init.js automatically loads all your scripts.
|
|
469
469
|
|
|
470
470
|
## Commands
|
|
471
471
|
|
|
@@ -1433,8 +1433,8 @@ async function deployCommand(environment, options) {
|
|
|
1433
1433
|
} else {
|
|
1434
1434
|
console.log(chalk5.green("\u2705 Changes are now live!"));
|
|
1435
1435
|
console.log();
|
|
1436
|
-
console.log(chalk5.dim("Make sure this script tag is in your Webflow site:"));
|
|
1437
|
-
console.log(chalk5.dim(`<script
|
|
1436
|
+
console.log(chalk5.dim("Make sure this script tag is in your Webflow site (before </body>):"));
|
|
1437
|
+
console.log(chalk5.dim(`<script defer src="https://app.cure.no/api/cdn/${config.siteSlug}/init.js"></script>`));
|
|
1438
1438
|
}
|
|
1439
1439
|
} catch (error) {
|
|
1440
1440
|
spinner.fail("Deployment failed");
|
|
@@ -1809,8 +1809,8 @@ async function statusCommand(options) {
|
|
|
1809
1809
|
console.log();
|
|
1810
1810
|
console.log(chalk7.cyan(` https://app.cure.no/api/cdn/${config.siteSlug}/init.js`));
|
|
1811
1811
|
console.log();
|
|
1812
|
-
console.log(chalk7.dim(" Add to Webflow \u2192 Project Settings \u2192 Custom Code \u2192
|
|
1813
|
-
console.log(chalk7.dim(` <script
|
|
1812
|
+
console.log(chalk7.dim(" Add to Webflow \u2192 Project Settings \u2192 Custom Code \u2192 Body (before </body>):"));
|
|
1813
|
+
console.log(chalk7.dim(` <script defer src="https://app.cure.no/api/cdn/${config.siteSlug}/init.js"></script>`));
|
|
1814
1814
|
console.log();
|
|
1815
1815
|
const spinner = ora6("Fetching status...").start();
|
|
1816
1816
|
try {
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED