silverstripe-vendormodule silverstripe-theme-manifest-assets
Loads theme assets from a JSON manifest produced from a build tool like Webpack
christopherdarling/silverstripe-theme-manifest-assets
Loads theme assets from a JSON manifest produced from a build tool like Webpack
- Thursday, May 31, 2018
- by christopherdarling
- Repository
- 1 Watchers
- 1 Stars
- 33 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 4 Versions
- 14 % Grown
Theme Manifest assets
loads a JSON manifest file (default: themes/default/mainifest.json), looks up a given path and outputs the hashed filename, (*1)
Example
Folder structure
dist/
- assets.js
- manifest.json, (*2)
manifest.json
{
'img/logo.png': 'img/logo_HASH.png'
}
.ss template
<img src="{$ThemeManifestAsset(img/logo.png)}" alt="Logo">
Will output, (*3)
<img src="themes/default/dist/img/logo_HASH.png" alt="Logo">
dev-master
9999999-dev
Loads theme assets from a JSON manifest produced from a build tool like Webpack
Sources
Download
MIT
The Requires
asset
theme
silverstripe
webpack
manifest
2.0
2.0.0.0
Loads theme assets from a JSON manifest produced from a build tool like Webpack
Sources
Download
MIT
The Requires
asset
theme
silverstripe
webpack
manifest
1.1.0
1.1.0.0
Loads theme assets from a JSON manifest produced from a build tool like Webpack
Sources
Download
MIT
The Requires
asset
theme
silverstripe
webpack
manifest
1.0.0
1.0.0.0
Loads theme assets from a JSON manifest produced from a build tool like Webpack
Sources
Download
MIT
The Requires
asset
theme
silverstripe
webpack
manifest