Z
Z
Zakhar Morozov2015-10-25 17:25:40
Node.js
Zakhar Morozov, 2015-10-25 17:25:40

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

1 answer(s)
R
Rikcon, 2015-10-25
@fortaelo

show your gulpfile

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question