jeudi 27 avril 2017

mix.copyDirectory is not a function in Laravel Elixir 5

According to the docs, in order to maintain the directory's structure I should use copyDirectory but I obtain the following:

/webpack.mix.js:16
   .copyDirectory('resources/assets/bower', 'public/js');
    ^

TypeError: mix.js(...).sass(...).copyDirectory is not a function

This is my webpack file:

const { mix } = require('laravel-mix');

mix.js('resources/assets/js/app.js', 'public/js')
   .sass('resources/assets/sass/app.scss', 'public/css')
   .copyDirectory('resources/assets/bower', 'public/js');

Any ideas? Thanks



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2p7sHiu
via IFTTT

Aucun commentaire:

Enregistrer un commentaire