title: How to setup guessjs in an angular cli project using the ui-router?
body: <p>I am trying to setup guessjs for prefetching some of my modules currently via a static <code>routes.json</code> file. The project uses angular cli with custom webpack config as described here
  <a href="https://guess-js.github.io/docs/angular" rel="nofollow noreferrer">https://guess-js.github.io/docs/angular</a></p>
  
  <p>However, the project uses UI router for routing rather than the Angular Router module.</p>
  
  <p>This is the custom-webpack config file</p>
  
  <pre><code>new GuessPlugin({
              // Alternatively you can provide a Google Analytics View ID
              // GA: 'XXXXXX',
              reportProvider() {
                  return Promise.resolve(
                      JSON.parse(
                          require('fs')
                          .readFileSync(helpers.root('src/routes.json'))
                      )
                  );
              },
              runtime: {
                  delegate: false
              },
              routeProvider() {
                  return parseRoutes('.');
              }
          })
  </code></pre>
  
  <p>And this is custom <code>routes.json</code> file</p>
  
  <pre><code>{
      "/": {
          "/connection": 50
      }
  }
  </code></pre>
  
  <p>And this is in my <code>app.routes.ts</code> file</p>
  
  <pre><code>    {
          name: 'connection.**',
          url: '/connection',
          loadChildren: () =&gt; import('../connection/connection.module').then((m) =&gt; m.ConnectionModule)
      },
  </code></pre>
  
  <p>When I run the build, in the terminal I don't see any mappings in the table</p>
  
  <pre><code>
   Guess.js introduced the following prefetching instructions:
  INFO::1573516022471:: 
  
  ╔════════════╤════════╤═════════════╗
  ║ Prefetcher │ Target │ Probability ║
  ╚════════════╧════════╧═════════════╝
  </code></pre>
  
  <p>This table is empty. I believe this table should be populated with the route specified in the <code>routes.json</code>?</p>
  
  <p>Is there any separate config I need to do setup guessjs to be used with <code>UI Router</code>? </p>
  
  <p>Angular: 8.2.0
  UI Router: 4.0.0
  guess-parser: 0.4.12
  guess-webpack: 0.4.12</p>
  
  <p>Thank you for your help.</p>