Extracting only the css used in a specific page

前端 未结 15 2043
难免孤独
难免孤独 2020-12-04 06:51

Say you had a dynamically generated site that has been worked on by too many people, past and present, and you now have a collection of shared stylesheets that contain over

15条回答
  •  甜味超标
    2020-12-04 07:48

    • uncss: Find Unused CSS - cli tool, uses phantomjs and executes JS on the page, can be used on URLs
    • grunt-uncss - only works on static files
    • (critical css - extracts CSS for elements visible in the browser window)

提交回复
热议问题