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

Ensure asset directory exists #194

Merged
merged 2 commits into from
May 12, 2016
Merged

Ensure asset directory exists #194

merged 2 commits into from
May 12, 2016

Commits on May 12, 2016

  1. Ensure asset directory exists

    Creating a static build would fail (Error: ENOENT: no such file or directory) if it encountered an asset in a subdirectory.
    Use mkdir to ensure the path exists, before writing the file.
    
    For example, referencing fonts would fail:
    ```
    @font-face {
      font-family: 'vaud';
      src: url('../fonts/vauddisplaybold-webfont.eot');
      src:
        url('../fonts/vauddisplaybold-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/vauddisplaybold-webfont.woff') format('woff'),
        url('../fonts/vauddisplaybold-webfont.ttf') format('truetype'),
        url('../fonts/vauddisplaybold-webfont.svg#vaud_displayregular') format('svg');
      font-weight: 700;
      font-style: normal;
    }
    ```
    thebuilder committed May 12, 2016
    Configuration menu
    Copy the full SHA
    0398f44 View commit details
    Browse the repository at this point in the history
  2. Make ESlint happy

    thebuilder committed May 12, 2016
    Configuration menu
    Copy the full SHA
    c842c3f View commit details
    Browse the repository at this point in the history