V
V
Vyacheslav Lebedev2015-05-31 01:20:46
gulp.js
Vyacheslav Lebedev, 2015-05-31 01:20:46

How to set up gulp-inline?

Good evening!
I take the mana: gulp-inline , set it up and think that base: 'public/inline' will tell gulp-inline which files to embed, but for some reason this does not happen and it embeds all files included in html :(

gulp.task('inline', ['views', 'inline:styles', 'inline:scripts'], function() {
  gulp.src('public/views/index.html')
    .pipe(inline({
      base: 'public/inline/'
  })).pipe(gulp.dest('public/views/index2'));
});

Help out :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vyacheslav Lebedev, 2015-05-31
@slavikse

Replacement: css , js or for css and js with one plugin.

Z
zooks, 2015-05-31
@zooks

The source of the files is listed in
gulp.src('public/views/index.html')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question