martenframework / marten

The pragmatic web framework.
https://martenframework.com
MIT License
396 stars 21 forks source link

Add `--fingerprint` option to `collectassets` #211

Closed treagod closed 3 months ago

treagod commented 4 months ago

This commit adds a --fingerprint option, which automatically adds a fingerprint to the collected assets. In addition a manifest.json is created, which maps the original file paths to the fingerprinted paths.

The manifest.json is stored in src/manifest.json by default. The new --manifest-path' option allows you to specify an alternate path where themanifest.json' should be stored if required.

Closes #205

treagod commented 3 months ago

@ellmetha please have a look at my comment regarding the app location. After resolving this I'll merge this one!