gulp does not recognize {{assets ()}} from blade

0

Hello,

I'm implementing gulp in a laravel project. I have the following task:

gulp.task('usemin', function(){
return gulp.src('version-client/app/views/**/*.php')
    .pipe(usemin({
        js: [uglify],
        css: [autoprefixer, cssmin]
    }))
    .pipe(gulp.dest('version-client/app/views'));

});

This task returns me the following error:

events.js:112
  throw er; // Unhandled 'error' event
  ^
Error: Path C:\projetos\version-client\app\views\shared\{{asset( not found!

I believe gulp can not interpret the {{assets of the laravel blade. How can I resolve this?

    
asked by anonymous 09.03.2018 / 12:58

0 answers