A
A
Aleksandr2015-08-03 23:51:52
JavaScript
Aleksandr, 2015-08-03 23:51:52

What is the alternative to gulp-rigger?

Subject.
Need an alternative to this plugin. Tell me pzhl

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2015-08-04
@Sashjkeee

gulp-inject, less/postcss, modules (babel + esperanto)

L
lnked, 2015-08-04
@lnked

var fileinclude = require('gulp-file-include');

gulp.task('html', function() {
    gulp.src(path.assets.html)
        .pipe(fileinclude({
                prefix: '@@',
                basepath: '@file'
            }))
        .pipe(gulp.dest(path.build.html))
});

applied like this
@@include('./components/meta.html', {
  "title": "Main",
  "viewport": "width=device-width, initial-scale=1"
})

you can use the @@title and @@viewport variables in the file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question