@gracile/sitemap
Advanced tools
Comparing version 0.1.0 to 0.1.1-next.0
@@ -16,3 +16,3 @@ import { Readable } from 'node:stream'; | ||
if (isSsrBuild) { | ||
logger.error(`\n${VITE_PLUGIN_NAME} is only compatible with static output!\n`); | ||
logger.warn(`\n${VITE_PLUGIN_NAME} is only compatible with static output! Skipping…\n`); | ||
return; | ||
@@ -23,2 +23,6 @@ } | ||
.map(([, asset]) => `/${asset.fileName}`.replace(/\/index\.html$/, '/')); | ||
if (links.length < 2) { | ||
logger.warn(`\n${VITE_PLUGIN_NAME} hasn't found any built HTML pages! Skipping…\n`); | ||
return; | ||
} | ||
const hostname = options.siteUrl.endsWith('/') | ||
@@ -25,0 +29,0 @@ ? options.siteUrl |
{ | ||
"name": "@gracile/sitemap", | ||
"version": "0.1.0", | ||
"version": "0.1.1-next.0", | ||
"description": "A thin, full-stack, web framework", | ||
@@ -37,3 +37,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@gracile/internal-utils": "^0.3.0", | ||
"@gracile/internal-utils": "^0.3.1-next.0", | ||
"picocolors": "^1.0.0", | ||
@@ -49,3 +49,3 @@ "sitemap": "8.0.0" | ||
}, | ||
"gitHead": "aa833d408257a36df6e268712a625900e92dd6e3" | ||
"gitHead": "56eaa6603c913e7b0af2ece069f627821bb61a17" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
43073
72