Skip to content

v1.0.0

Choose a tag to compare

@s0ph1e s0ph1e released this 27 Apr 19:07
· 358 commits to master since this release
  • 92eb86f - Change output format: now it returns full tree of assets for each resource
  • a1b347b - Add prettifyUrls feature
  • e7f8b80 - Add urlFilter feature
  • 00443b6 - Add filnameGenerator feature
  • dc4ab93 - Use lodash instead of underscore
  • e88abb2 - Add missing extensions for html and css resources

Breaking changes
Changed output format.
Earlier - flat array of root resources was returned

[ { url: 'http://example.com', filename: 'index.html' } ];

Now - tree of resources

[ { 
  url: 'http://example.com', 
  filename: 'index.html',
  assets: [ // dependencies of index.html
    { 
      url: 'http://example.com/style.css', 
      filename: 'style.css', 
      assets: [ // dependencies of style.css
        { url: 'http://example.com/img-from-styles.png', filename: 'img-from-styles.png', assets: [] },
      ] 
    }
    /* other dependencies of index.html */
  ]
} ];