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

Fix a bug occuring when outputPaths is undefined #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jan 31, 2017

  1. Fix a bug occuring when outputPaths is undefined

    When *outputPaths* is `undefined`, *outputPaths* is happened to an `array` resulting in an error at 44:42
    
    > Cannot read property 'replace' of undefined
    
    I chosed to use the bundle name with html extension as default path.
    
    Empty string will be considered as undefined. I could have done:
    
    ```
    this.outputPaths = Array.isArray(outputPaths) ? outputPaths : ['string' === typeof outputPaths ? outputPaths : renderSrc + '.html']
    ```
    
    but it seemed unjustified.
    cahnory committed Jan 31, 2017
    Configuration menu
    Copy the full SHA
    56c412a View commit details
    Browse the repository at this point in the history