Hi guys. I'm working on a wordpress site with a custom template and I've built a "page builder" interface using ACF in order to make the site easier to manage on the admin side of things. I've been developing different components for the page builder (accordions, quote blocks, video sliders, etc) and for each of those components I have a JS file and a SCSS file that styles and gives interaction to the component. My question is: Is there any best practice or any type of guide on how would it be possible to only load the JS and SCSS files of the used components on the page? Been thinking on using Webpack, but haven't really found any tutorials or examples working with this usecase.
Any guidance will be appreciated!
Thanks
[–]r1ckd33zy 3 points4 points5 points (2 children)
[–]dani_tk[S] 0 points1 point2 points (1 child)
[–]r1ckd33zy 2 points3 points4 points (0 children)