Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel elixir - don't generate map files

The question is - how to force Laravel Elixir not to generate map files?

At the moment if I run gulp I will have generated app.css and app.css.map file. I don't know what for is this app.css.map file but I think it's not necessary for me at the moment. Question is - how to force gulp not to generate this file?

At the moment my gulpfile.js looks like this:

var elixir = require('laravel-elixir');

elixir(function(mix) {
    mix.sass('app.scss', 'public/css/app.css');
});
like image 682
Marcin Nabiałek Avatar asked Nov 28 '22 16:11

Marcin Nabiałek


1 Answers

This is no longer achievable via elixir.extend() syntax, instead the official documentation now suggests to use this:

elixir.config.sourcemaps = false;
like image 90
nCrazed Avatar answered Jan 18 '23 02:01

nCrazed