Does source-maps in style tags work?

后端 未结 1 1378
北海茫月
北海茫月 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条回答
  • 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)
提交回复
热议问题