Does source-maps in style tags work?

后端 未结 1 1379
北海茫月
北海茫月 2021-02-06 00:52

I\'m having problems with CSS within a tag and source-maps.

In order to improve the load time of my project, I have changed the way I put the CSS in my HTML, turning th

1条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-06 01:21

    /*@ sourceMappingURL= is the old syntax, /*# sourceMappingURL= should be used instead.

    The new Syntax is implemented in all major browser source and Internet explorer 11+ source.

    Chrome dev tools

    1. Open Developer Tools F12
    2. Open Settings F1.
    3. Click "Enable CSS source maps" checkbox

    Firefox dev tools

    1. Open Developer Tools F12
    2. Open Toolbar Options (Cog on right).
    3. Click "Show original sources" checkbox

    Internet Explorer dev tools

    1. Open Developer Tools F12
    2. Open Debugger panel Ctrl+3
    3. click the last icon on the right

    Safari dev tools & Firebug

    • enabled by default.

    0 讨论(0)
提交回复
热议问题