svelte-sitemap icon indicating copy to clipboard operation
svelte-sitemap copied to clipboard

[New Feature] Load config from file `svelte-sitemap.cjs`

Open bartholomej opened this issue 2 years ago • 2 comments

Feature idea

I want to try the possibility of loading the config from a file

  • This should become the main and recommended method
  • The CLI version should remain untouched

Proposal

./svelte-sitemap.cjs

module.exports = {
  domain: 'https://www.example.com',
  resetTime: false,
  debug: true
};

Let's discuss here ;)

bartholomej avatar Jan 18 '22 17:01 bartholomej

Now you can try v3.0.0-next.7 beta version with this feature.

npm i svelte-sitemap@next

bartholomej avatar Jan 18 '22 17:01 bartholomej

Documentation is here: https://github.com/bartholomej/svelte-sitemap/tree/config-file#usage

bartholomej avatar Jan 18 '22 17:01 bartholomej