You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but even If I bind the context of lazypipe to the outer scope, it doesn't work, I get this error:
[10:13:25] 'site' errored after 12 ms
[10:13:25] TypeError: Cannot read property 'on' of undefined
at DestroyableTransform.Readable.pipe (/Users/awilhelm/dev/musik-kuntschule/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:516:7)
at Gulp.<anonymous> (/Users/awilhelm/dev/musik-kuntschule/gulp/index.js:41:10)
at module.exports (/Users/awilhelm/dev/musik-kuntschule/node_modules/orchestrator/lib/runTask.js:34:7)
at Gulp.Orchestrator._runTask (/Users/awilhelm/dev/musik-kuntschule/node_modules/orchestrator/index.js:273:3)
at Gulp.Orchestrator._runStep (/Users/awilhelm/dev/musik-kuntschule/node_modules/orchestrator/index.js:214:10)
at Gulp.Orchestrator.start (/Users/awilhelm/dev/musik-kuntschule/node_modules/orchestrator/index.js:134:8)
at runNextSet (/Users/awilhelm/dev/musik-kuntschule/node_modules/run-sequence/index.js:88:16)
at runSequence (/Users/awilhelm/dev/musik-kuntschule/node_modules/run-sequence/index.js:99:2)
at Gulp.<anonymous> (/Users/awilhelm/dev/musik-kuntschule/gulp/index.js:15:2)
at module.exports (/Users/awilhelm/dev/musik-kuntschule/node_modules/orchestrator/lib/runTask.js:34:7)
[10:13:25] 'dev' errored after 18 ms
So for now I fixed it via a hardcoded line:
//TODO: how to make this configurable?varbaseDir='src/'returncompile_template(baseDir+'templates/'+t+'.jade')
The text was updated successfully, but these errors were encountered:
Hi, did some cleanup (94976ba) but more work needed to brush this thing up. Updated the example (https://github.com/wires/gulp-static-site-example) so I can test this again.
See what the problem is, will fix this week, now 💤
I have all my files in a
src
directory. So I start it with this lines:But the problem occurs when your plugin tries to load the template which is assumed to be located always in the (gulp) root directory?
https://github.com/wires/gulp-static-site/blob/master/index.js#L90
I tried to change the exporting module, add an options argument:
but even If I bind the context of
lazypipe
to the outer scope, it doesn't work, I get this error:So for now I fixed it via a hardcoded line:
The text was updated successfully, but these errors were encountered: