mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-07-09 19:51:07 +01:00
Fix generation glitches.
Fix output file name glitch, writing CSS files to destination folder, and an issue where the process would evaporate before PDF/PNG generation could complete.
This commit is contained in:
@ -154,6 +154,7 @@ _build = ( src, dst, opts ) ->
|
||||
@reject results
|
||||
else if !@hasError()
|
||||
@resolve results
|
||||
|
||||
results
|
||||
|
||||
|
||||
@ -258,12 +259,10 @@ _single = ( targInfo, theme, finished ) ->
|
||||
|
||||
###* Ensure that user-specified outputs/targets are valid. ###
|
||||
_verifyOutputs = ( targets, theme ) ->
|
||||
@stat HMEVENT.verifyOutputs, { targets: targets, theme: theme }
|
||||
@stat HMEVENT.verifyOutputs, targets: targets, theme: theme
|
||||
_.reject targets.map( ( t ) ->
|
||||
pathInfo = parsePath t
|
||||
{
|
||||
format: pathInfo.extname.substr(1)
|
||||
}),
|
||||
format: pathInfo.extname.substr(1) ),
|
||||
(t) -> t.format == 'all' || theme.hasFormat( t.format )
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user