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 am pretty confused with how cfstatic works. Mostly I am wondering if I just don't follow the correct pattern.
My projects are not as organized as the docs layout, my javascript folder contains subfolders for each dependency I have. For example, fancybox has the javascript and css source files in it's own folder.
No, unfortunately not. CfStatic is a very opinionated about the structure of your js / css. I started a new project to get over that and a few other problems. Right now, it doesn't have built in pre-compiling (we use Grunt with it), but it does all the per request inclusion stuff (including dependency management):
I am pretty confused with how cfstatic works. Mostly I am wondering if I just don't follow the correct pattern.
My projects are not as organized as the docs layout, my javascript folder contains subfolders for each dependency I have. For example, fancybox has the javascript and css source files in it's own folder.
So it looks like this
There is no file
I want to say cfstatic.include("/static/js/fancybox/fancybox.css")
Can this be done with cfstatic?
The text was updated successfully, but these errors were encountered: