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
I have been doing this in my latest projects and it works really good. It makes it much more flexible and like it should be actually (using dependencies logic, etc). Here's how it looks on my end in a sample project.
Remove references to our CSS and JS files from base.twig
Since we have jQuery in the list of dependencies in most cases there's no need to install the newest jQuery version via our generator and just use the globally available window.jQuery in our custom JS.
Maybe it's worth to consider changing the revisionedPath into a static method so we don't need to create an instance of ChiselTwig class every time we need to use the revisionedPath method.
The text was updated successfully, but these errors were encountered:
I have been doing this in my latest projects and it works really good. It makes it much more flexible and like it should be actually (using dependencies logic, etc). Here's how it looks on my end in a sample project.
Since we have jQuery in the list of dependencies in most cases there's no need to install the newest jQuery version via our generator and just use the globally available
window.jQuery
in our custom JS.Maybe it's worth to consider changing the
revisionedPath
into a static method so we don't need to create an instance ofChiselTwig
class every time we need to use therevisionedPath
method.The text was updated successfully, but these errors were encountered: