CSS 在 SASS 上禁用地图文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27777854/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Disable map files on SASS
提问by supersize
回答by matewka
回答by Jaisa Ram
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
1.8.0 用 dart2js 2.0.0-dev.66.0 编译
回答by Ahmed Kamal
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
我使用sass version 1.13.2 compiled with dart2js 2.0.0
的Ubuntu
,它的sass --no-source-map --watch [source].scss:[target].css
as --source-map
enables source map and --no-source-map
disables it.
as--source-map
启用源映射并--no-source-map
禁用它。
回答by Anatolii Pazhyn
Works:
作品:
sass --sourcemap=none style.scss style.css
Doesn't work, still generate .map file:
不起作用,仍然生成 .map 文件:
sass --update --sourcemap=none style.scss:style.css
So make sure you have no --update
flag
所以确保你没有--update
标志