Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable map files on SASS

Tags:

css

sass

I would like to know how I can prevent Sass from writing .map files. I'm using Sass in a very basic setup:

sass --watch style.scss:style.css

what parameters do I have to add to avoid Sass to generate map files?

like image 580
supersize Avatar asked Jan 05 '15 10:01

supersize


3 Answers

That depends on the implementation.

For node-sass and ruby-sass try this:

sass --sourcemap=none --watch style.scss:style.css 

If you're using dart-sass the usage is --no-source-map:

sass --no-source-map --watch style.scss:style.css 
like image 53
matewka Avatar answered Sep 23 '22 06:09

matewka


it's works:

sass --watch --no-source-map input.scss output.css 

with

1.8.0 compiled with dart2js 2.0.0-dev.66.0

like image 36
Jaisa Ram Avatar answered Sep 25 '22 06:09

Jaisa Ram


I'm using sass version 1.13.2 compiled with dart2js 2.0.0 on Ubuntu and it's sass --no-source-map --watch [source].scss:[target].css

as --source-map enables source map and --no-source-map disables it.

like image 21
Ahmed Kamal Avatar answered Sep 26 '22 06:09

Ahmed Kamal