title: Build only specific pages in Nuxt.js
body: <p>Is it possible to build or generate only specific pages from a Nuxt project? In other words, a subset of the project.</p>
  <p>In example, let's say I have the following pages directory:</p>
  <pre><code>pages/
  |
  |- index.vue
  |- about-us.vue
  |- pricing.vue
  |- moduleA
      |
      |- index.vue
      |- _id.vue
  |- moduleB
      |
      |- index.vue
      |- _id.vue
  </code></pre>
  <p>By doing <code>nuxt generate</code>, all pages would be built and the ones that can be pre-render, will be pre-render. Is there a way of only building, for example, everything but <code>moduleB/</code>?</p>
  <p>Right now I'm using the nuxt hook <code>generate:extendRoutes</code> to do a list of only the routes that I want to generate as suggested here: <a href="https://github.com/nuxt/nuxt.js/issues/2719#issuecomment-362871101" rel="nofollow noreferrer">https://github.com/nuxt/nuxt.js/issues/2719#issuecomment-362871101</a> . However, even though only those routes are generated, if one of the routes has a dependency to a module that is not in the list, it will still load that module.</p>
  <p>i.e. If everything but <code>moduleB/</code> is generated, but <code>pricing.vue</code> has a link to <code>moduleB/index.vue</code>, you can still access it by going <code>/pricing =&gt; /moduleB</code></p>
  <p>What I want is a subset of the project, so that <code>moduleB/</code> is not accessible at all without having to fork the project, delete <code>moduleB/</code>, and then build that forked project. Is that possible?</p>