{"id":4264,"date":"2024-10-25T10:15:05","date_gmt":"2024-10-25T15:15:05","guid":{"rendered":"https:\/\/frontendmasters.com\/blog\/?p=4264"},"modified":"2024-10-25T10:15:06","modified_gmt":"2024-10-25T15:15:06","slug":"speed-up-sass","status":"publish","type":"post","link":"https:\/\/frontendmasters.com\/blog\/speed-up-sass\/","title":{"rendered":"Speed up Sass"},"content":{"rendered":"\n<p>Are you using Sass as part of your build process? If you&#8217;re using Vite or webpack and importing SCSS files in lots of different components, be aware you should probably <a href=\"https:\/\/www.oddbird.net\/2024\/08\/14\/sass-compiler\/\">switch to <code>sass-embedded<\/code> instead of <code>sass<\/code><\/a>, as it can, as James Stuckey Weber wrote, &#8220;allows you to reuse a single instance of Sass for multiple compilations&#8221; instead of Sass spinning up and down for every single import. <\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you using Sass as part of your build process? If you&#8217;re using Vite or webpack and importing SCSS files in lots of different components, be aware you should probably switch to sass-embedded instead of sass, as it can, as James Stuckey Weber wrote, &#8220;allows you to reuse a single instance of Sass for multiple [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4266,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[29],"tags":[117],"class_list":["post-4264","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-the-beat","tag-scss"],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/frontendmasters.com\/blog\/wp-content\/uploads\/2024\/10\/pexels-photo-842654.jpeg?fit=1880%2C1253&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/4264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/comments?post=4264"}],"version-history":[{"count":2,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/4264\/revisions"}],"predecessor-version":[{"id":4267,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/4264\/revisions\/4267"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media\/4266"}],"wp:attachment":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media?parent=4264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/categories?post=4264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/tags?post=4264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}