Require.js or other AMD solutions
requirejs 會需要修改很多 bundle 路徑
Expose asset directory from bundles by symlink or auto-copy
Support development / production mode
assetkit init baseDir public/assetsbaseUrl "/assets"
.assetkit.php 會存在 applicatoin root directory.
assetkit add path/to/bootstrap
assetkit add path/to/assets/jquery
assetkit install --link # symbol link (faster for development mode)
$loader = new AssetToolkit\AssetLoader($config);
assets/page-id/hash.min.js
assetkit target # 哪些 target 用到哪些 assetkit
CssImportFilter-> Css RewirteFilter. (CSS Import 整進一行後, 在經過 rewrite 修正路徑)