title: Assemble.io assemble-middleware-permalinks not working, no output for assemble task
body: <p>EDIT: Solved, see below.</p>
  
  <p>Having trouble getting 'pretty URLs' to work with Assemble.io based site. With assemble-middleware-permalinks commented out it assembles the pages just fine into my specified folder (as index.html, about.html etc).</p>
  
  <p>Full console output:</p>
  
  <pre><code># grunt
  
  Running "clean:build" (clean) task
  Cleaning ./dist...OK
  
  Running "copy:assets" (copy) task
  Created 2 directories, copied 13 files
  
  Running "uglify:vendor" (uglify) task
  File ./dist/development/assets/js/components.js created: 129.64 kB → 128.88 kB
  
  Running "sass:dist" (sass) task
  File dist/development/assets/css/main.css created.
  
  Running "assemble:pages" (assemble) task
  
  # 
  </code></pre>
  
  <p>My assemble task:</p>
  
  <pre><code>assemble: {
  
    options: {
      flatten: true,
      plugins: [
        'assemble-contrib-permalinks',
        'assemble-middleware-sitemap'
      ],
  
      permalinks: {
        structure: ':basename/index.html'
      },
  
      // Templates
      layoutdir: opt.layouts,
      partials: opt.layouts + '/partials/*.hbs',
      layout: 'default.hbs',
  
      // data: opt.data + '/*.{json,yml}',
      // assets: opt.dev + '/assets',
  
      sitemap: {
        homepage: opt.homepage,
        changefreq: 'monthly',
        priority: '0.8',
        robot: false,
        relativedest: true
      },
  
    },
  
    pages: {
      files: [
        {
          src: opt.pages + '/*.{hbs,md}',
          dest: opt.dev + '/'
        },
      ]
    }
  }
  </code></pre>