Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPA setting: ignore files with extensions #142

Closed

Commits on Sep 1, 2016

  1. SPA setting: ignore files with extensions

    When running our app we do want requests like `/123/` to be converted to
    `/#/123`, however things like `/style.css` or `/foo.png` should be
    ignored. This commit changes the behaviour for the spa setting so it
    only applies to requests without an extension.
    jackfranklin committed Sep 1, 2016
    Configuration menu
    Copy the full SHA
    19d7a19 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2016

  1. Configuration menu
    Copy the full SHA
    5037993 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2016

  1. Allow passing a function for spaIgnoreAssets

    This addition will allow people who want to control the SPA URL
    rewriting fully do so.
    
    This PR means you can pass:
    
    - `spaIgnoreAssets: true` (or `--spa-ignore-assets`) to not rewrite ANY
    URLs that contain a file extension
    
    - `spaIgnoreAssets: function(req) {...}` a function that should:
    	- return `true` when the asset should be ignored
    	- return `false` when it shouldn't be ignored
    jackfranklin committed Oct 12, 2016
    Configuration menu
    Copy the full SHA
    8a83c08 View commit details
    Browse the repository at this point in the history