Gutenberg & ACF: Splitting CSS files

[ad_1]

Hi guys,

Working on refactoring and refining my Webpack build tools for my personal WordPress theme boilerplate, and I’ve got a question on splitting CSS files.

Should I tell Webpack to split each block specific CSS file, or combine them all into one? I know when using the function \`acf\_register\_block\_type()\`, you’re able to specific the specific CSS file the block should use.

This seems to suggest I should split out my CSS files, but then I’m making more requests on page loads.

What do you guys think?

Thanks!

[ad_2]
1 Comment
  1. Combine and minify CSS files later when optimising the site and setting up caching etc.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer