asset-management

Flex graphic assets: SWF or SWC?

我们两清 提交于 2019-11-30 02:10:18
Which is a better format to store graphic assets for a Flex application, SWF or SWC? Are there any real differences, and if so what are they? Assets in a seperate SWF are loaded and included at runtime. Assets in a SWC are loaded and included / compiled at compile time. You can also directly embed assets within the main app SWF at compile time (check out the Embed meta data). Of course, you can also load individual assets (such as a PNG) directly at runtime. As far as which is better, it really depends on what you are trying to do, and how the assets are used. mike SWC is what you use when you

Best way to combine and minify JS / CSS on Heroku

做~自己de王妃 提交于 2019-11-29 22:58:12
First of all, according to this answer , the :cache => true option on stylesheet_link_tag and javascript_include_tag doesn't work on Heroku. Is this true? I've found :cache => true to work occasionally, but not always (weird!) Also, what's the best solution here? Ideally it would seamlessly combine and minify all CSS / JS. Heroku Asset Packager claims to do this -- are there better options? I'm using Jammit on Heroku. Works Great. You can locally build your assets and check in to heroku. use jammit --force the current version 0.5.1 has issues working on heroku but you can install the fixed

A package manager for web assets

点点圈 提交于 2019-11-29 00:53:53
问题 Do you know a package manager for web assets? I'd like something that can download libraries such as jQuery so I can plug them into my asset pipeline. The js.* python packages for fanstatic are close, but they pick a single "latest" version of the library, which can lag a few releases behind. Google's js cdn has the metadata for a few of them, but is mostly designed to be downloaded by the browser directly. 回答1: I've found these package managers for in-browser javascript: CPM (CommonJS