title: How to generate a sitemap.xml from Vue router using Webpack?
body: <p>I'm creating a Webpack configuration for Vue.js from scratch, I want to generate a <code>sitemap.xml</code> file dynamically from the Vue router and use <a href="https://github.com/ekalinin/sitemap.js" rel="nofollow noreferrer">sitemap.js</a> to generate the file but I still need the list of routes, I couldn't find a clean way to do this using Webpack, I cannot <code>require</code> the Vue router file in my Webpack configuration as it's using ES6 <code>import</code> and it's going to throw a <code>SyntaxError</code>.</p>
  
  <p>Edit: I have tried using <code>@babel/register</code> in my Webpack config file to import the router, but the import is now breaking because of the <code>.vue</code> files.</p>
  
  <p>How do you generate a <code>sitemap.xml</code> file using Webpack from Vue router?</p>