惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
Cloudbric
Cloudbric
P
Palo Alto Networks Blog
T
Threatpost
T
Tor Project blog
T
Tenable Blog
AWS News Blog
AWS News Blog
Project Zero
Project Zero
L
LangChain Blog
Cyberwarzone
Cyberwarzone
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
C
CERT Recently Published Vulnerability Notes
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Security Latest
Security Latest
云风的 BLOG
云风的 BLOG
I
Intezer
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
MongoDB | Blog
MongoDB | Blog
aimingoo的专栏
aimingoo的专栏
K
Kaspersky official blog
Jina AI
Jina AI
N
News | PayPal Newsroom
T
The Blog of Author Tim Ferriss
D
DataBreaches.Net
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
Recorded Future
Recorded Future
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Secure Thoughts
TaoSecurity Blog
TaoSecurity Blog
P
Privacy & Cybersecurity Law Blog
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
IT之家
IT之家
Forbes - Security
Forbes - Security
The Hacker News
The Hacker News
Last Week in AI
Last Week in AI
T
Threat Research - Cisco Blogs
Y
Y Combinator Blog

冰糖橙子

如何测试 React Hooks ? synth — 为 RESTful API 而生的node框架 WEBP imgSprite:可用性与性能优化
chrome 27+ 的 SCSS调试
作者:ariesjia 前端少先队员,光荣的红领巾在胸前飘扬 查看由ariesjia发表的所有文章 → · 2013-05-23 · via 冰糖橙子

您的位置:主页 > HTML/JS > chrome 27+ 的 SCSS调试

Chrome在更新到27后,之前的SCSS的debug info就不显示,刚开始还以为是更新后默认恢复了开启的试验选项,各种把 启用开发者工具实验Support for Sass 开了又关,关了又开,怎么也木有效果。

终于找到这个的解决办法:http://snugug.com/musings/debugging-sass-source-maps

原来Chrome27+只支持Source Maps,Source Map是一个JSON文件,而它包含了代码转换前后的位置信息:

1.确保开启除了原有的Support for Sass 再开启Enable source maps

2.把sass升级到3.3,因为目前3.3版本还不是正式版,用gem install sass –pre 3.3.0.alpha.138之后的版本还会要求有listen ,在安装下listengem install listen

3.编译时候加上 –sourcemap,例如:sass –sourcemap –watch pop.scss : pop.css

你就会看到除了输出.css的文件外,新增了一个.css.map文件

我们打开css文件看看,里面只在最后追加了一句/*@ sourceMappingURL=pop.css.map */相比之前的debug info 和 line comments 都简洁了很多。

OVER: 亲,你终于回来拉