You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
both work as expected in the theme, correctly deploying the style asset
using (2) seems cleaner -- everything in my twig/timber theme.
is there a sound reason NOT to -- and, instead, enqueue using WP functions?
is the WP-enqueueing needed, e.g., for Timper2 + ACF/Pro usage in Gutenberg?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i'm setting up a WP + timber2 project.
i manage assets with webpack5.
i build a webpack asset-manifest that maps unhashed key names to hashed asset paths.
e.g.,
when using assets in the timber2 proj theme, i can either
(1) enqueue the style in WP
or,
(2) load the asset in twig
both work as expected in the theme, correctly deploying the style asset
using (2) seems cleaner -- everything in my twig/timber theme.
is there a sound reason NOT to -- and, instead, enqueue using WP functions?
is the WP-enqueueing needed, e.g., for Timper2 + ACF/Pro usage in Gutenberg?
Beta Was this translation helpful? Give feedback.
All reactions