Answer the question
In order to leave comments, you need to log in
Is it possible to pass parameters to gulp-rigger?
If I refer to a .coffee file in a .js file, then the module compiles the code on the fly and inserts it. That is, the rigger itself calls the coffee-script compiler. Is it possible to pass parameters to it? I don't like that he uses it with default settings. In particular you need {bare : true}
Here is the gulpfile
gulp = require('gulp')
_concat = require('gulp-concat')
_rigger = require('gulp-rigger')
_sourcemaps = require('gulp-sourcemaps')
opt =
js: './bundle/profile/js/'
gulp.task '_js', ->
gulp.src opt.js + '*.js'
.pipe _sourcemaps.init()
.pipe _rigger()
.pipe _concat('profile.js')
.pipe _sourcemaps.write('./')
.pipe gulp.dest opt.js
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question