2017 © Pedro Peláez
 

silverstripe-vendormodule silverstripe-theme-manifest-assets

Loads theme assets from a JSON manifest produced from a build tool like Webpack

image

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

The README.md

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">

The Versions

31/05 2018

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

31/05 2018

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

12/04 2018

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

20/02 2017

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