I have the following gulpfile.js file:
var elixir = require('laravel-elixir'); /* |-------------------------------------------------------------------------- | Elixir Asset Management |-------------------------------------------------------------------------- | | Elixir provides a clean, fluent API for defining some basic Gulp tasks | for your Laravel application. By default, we are compiling the Less | file for our application, as well as publishing vendor resources. | */ var paths = { 'jquery': './vendor/bower_components/jquery/', 'bootstrap': './vendor/bower_components/bootstrap-sass-official/assets/', 'js': './resources/js/' } elixir(function (mix) { mix.sass('app.scss', 'public/css/') .copy(paths.bootstrap + 'fonts/bootstrap/**', 'public/fonts') .scripts( [ paths.jquery + "dist/jquery.js", paths.bootstrap + "javascripts/bootstrap.js", paths.js + "app.js" ], 'public/js/app.js', './') .version(['js/app.js', 'css/app.css']); mix.copy('public/js/app.js.map', 'public/build/js/app.js.map'); mix.copy('public/css/app.css.map', 'public/build/css/app.css.map'); });
However .map files are not copied to the public / build / folder. Am I doing something wrong with mix.copy ()? How can I understand why files are not copied?
I really think this is a bug in Laravel Elixir, since mix.version () should already copy the .map files already without the need for manual copying.
UPDATE
I wrote a question about Github: github.com/laravel/framework/issues/7650
laravel gulp
tholu
source share