This commit is contained in:
Julien Bisconti 2018-04-22 12:34:38 +02:00
parent 8f628c154a
commit 6656c3dc3b
2 changed files with 21 additions and 1 deletions

View File

@ -61,7 +61,11 @@ const bundle = (dest = destination) => {
new Parcel(dest, {
name: 'build',
publicURL: '/',
}).bundle();
})
.bundle()
.then(() => {
fs.copyFileSync('website/sitemap.xml', 'dist/sitemap.xml');
});
};
const main = () => {

16
website/sitemap.xml Normal file
View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<!-- created with Free Online Sitemap Generator www.xml-sitemaps.com -->
<url>
<loc>http://awesome-docker.netlify.com/</loc>
<lastmod>2018-04-22T10:28:08+00:00</lastmod>
</url>
</urlset>