clenemt / docdash

:zap: Lodash inspired JSDoc 3 template/theme
http://clenemt.github.io/docdash/
Other
824 stars 201 forks source link

publish creates sub-folders for everything static #42

Closed evantahler closed 6 years ago

evantahler commented 6 years ago

Now, when you publish, static assets end up in sub folders. This means the template cannot load files properly.

Expected: scripts/prettify/prettify.js Actual: scripts/prettify/prettify.js/prettify.js

ar2rsawseen commented 6 years ago

Hello, what is your OS and nodejs version? I seem to have such problem on Windows, but on Linux all works correctly. Just trying to gather more info on what it depends

ar2rsawseen commented 6 years ago

Ok, it seems to be a bug with copyFileSync specifically, copyFile works normally, so changed to that and it seems to fix it: https://github.com/clenemt/docdash/commit/8e77ad80a5e208cc15cae718c0f2119916963a12