Skip to content

Commit

Permalink
Return back generation of sitemap, because of its necessity.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kapelianovych committed Apr 19, 2021
1 parent 4bd8127 commit 6f82c3e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# [0.3.0] - 2021-04-19
# [0.3.1] - 2021-04-19

### Changed

- Return back generation of sitemap, because of its necessity.

## [0.3.0] - 2021-04-19

### Added

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kickin",
"version": "0.3.0",
"version": "0.3.1",
"description": "CLI for starting project with Eleventy.",
"bin": {
"kickin": "./bin/cli.js"
Expand Down
16 changes: 5 additions & 11 deletions templates/standard/.eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,11 @@ module.exports = (config) => {
})
);

if (process.env.NODE_ENV === 'production') {
// Generate sitemap only in production environment.
// This is done for purpose of faster first start.
// If you need this in development environment, you
// are free to modify this condition or remove it at all.
config.addPlugin(sitemap, {
sitemap: {
hostname: process.env.HOST,
},
});
}
config.addPlugin(sitemap, {
sitemap: {
hostname: process.env.HOST,
},
});

// Add generating service worker based on generated by Eleventy HTML files.
config.addPlugin(cache, { buildDirectory: BUILD_DIRECTORY });
Expand Down

0 comments on commit 6f82c3e

Please sign in to comment.