mercredi 13 janvier 2016

How to append to {{ asset('/') }}, prefix url build gulp-useref task on my a includable page

i used gulp and Laravel blade when run gulp,

Do i want thing?

i want {{ asset('/') }} append to perfix url build


head-include.blade.php Before running gulp

<!-- build:css  resources/assets/css/out.css -->
<link rel="stylesheet" href="resources/assets/css/1.css">
<link rel="stylesheet" href="resources/assets/css/2.css">
<!-- endbuild -->

gulpfiles.js

...
gulp.task('useref', function(){
  return gulp.src(paths.assets.html)
  .pipe(useref())
  .pipe(gulpIf('*.js', uglify()))

  .pipe(gulpIf('*.css', cssnano()))
  .pipe(gulp.dest(paths.dev.html))
});
...

head-include.blade.php After running gulp

<link rel="stylesheet" href="resources/assets/css/out.css">


But i want it:

i want {{ asset('/') }} append to perfix url build

head-include.blade.php I want ..

<link rel="stylesheet" href="{{ asset('/') }} resources/assets/css/out.css">



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire