christopherdarling/silverstripe-theme-manifest-assets
Composer 安装命令:
composer require christopherdarling/silverstripe-theme-manifest-assets
包简介
Loads theme assets from a JSON manifest produced from a build tool like Webpack
README 文档
README
loads a JSON manifest file (default: themes/default/mainifest.json), looks up a given path and outputs the hashed filename
Example
Folder structure
dist/
- assets.js
- manifest.json
manifest.json
{
'img/logo.png': 'img/logo_HASH.png'
}
.ss template
<img src="{$ThemeManifestAsset(img/logo.png)}" alt="Logo">
Will output
<img src="themes/default/dist/img/logo_HASH.png" alt="Logo">
统计信息
- 总下载量: 77
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-02-20