Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure asset directory exists (#194)
* 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; } ``` * Make ESlint happy
- Loading branch information