If I use Stylus with Jeet and Rupture, my gulpfile.js would look like this:
.pipe(stylus({ use:[prefixer(), jeet(), rupture()], compress: true }))
Now, I modularize my Gulp tasks with gulp-load-plugins. And then I left:
.pipe(plugins.stylus({ use:[prefixer(), jeet()], compress: true }))
However, when calling the gulp in the terminal, it gives an error. It says Jeet is not a function
[14:17:09] Starting 'stylus'... [14:17:09] 'stylus' errored after 466 ms [14:17:09] ReferenceError: jeet is not defined at Gulp. (/home/ednilson/Projects/web/workflow/workflow-stylus/tasks/stylus.js:6:22) at module.exports (/home/ednilson/Projects/web/workflow/workflow-stylus/node_modules/orchestrator/lib/runTask.js:34:7) at Gulp.Orchestrator._runTask (/home/ednilson/Projects/web/workflow/workflow-stylus/node_modules/orchestrator/index.js:273:3) at Gulp.Orchestrator._runStep (/home/ednilson/Projects/web/workflow/workflow-stylus/node_modules/orchestrator/index.js:214:10) at Gulp.Orchestrator.start (/home/ednilson/Projects/web/workflow/workflow-stylus/node_modules/orchestrator/index.js:134:8) at /home/ednilson/Projects/web/workflow/workflow-stylus/tasks/watch.js:6:17 at write (/home/ednilson/Projects/web/workflow/workflow-stylus/node_modules/gulp-watch/index.js:123:9) at /home/ednilson/Projects/web/workflow/workflow-stylus/node_modules/vinyl-file/index.js:52:4 at /home/ednilson/Projects/web/workflow/workflow-stylus/node_modules/graceful-fs/graceful-fs.js:78:16 at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:404:3)
I tried declaring again by following the gulp-load-plugins documentation guidance:
plugins.prefixer = require('autoprefixer-stylus'); plugins.jeet = require('jeet');
It did not work. So I tried to call the task straight:
.pipe(plugins.stylus({ use:[plugins.prefixer(), plugins.jeet()], compress: true }))
.pipe(plugins.stylus({ use:[plugins.prefixer(), plugins.jeet()], compress: true }))
How could I solve this?
Thank you all! :)