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');
});
.map
files are called source maps. Their purpose is to map the contents of a concatenated, minified file to it's original files to make debugging easier.
You can disable them by changing elixirs config using extend()
in your gulpfile
elixir.extend('sourcemaps', false);
Note that source maps are disabled by default when running in production.