Skip to content

enginiro/asset-bundle

Repository files navigation

Asset Bundle

The Asset Bundle of the Enginiro project provides implementation of a version strategy that accepts a JSON manifest file.

Usage

To use this bundle, require it in your composer.json file. By default, the version strategy will look for the manifest file in var/dat/asset-hashes.json. This can be customized by setting the enginiro_asset.manifest_path configuration option.

Manifest

The manifest file must be a JSON object, where keys are asset paths and values their hash. Paths must not begin with a slash.

For example:

{
	"assets/css/stylesheet.css": "abcd12345",
	"assets/js/script.js": "defg67890"
}

This format works well with the gulp-buster package.

About

Symfony bundle that provides implementation of an asset version strategy.

Topics

Resources

License

Stars

Watchers

Forks

Languages