Skip to content

zoukui/PlayFrameworkAssetsDemo

Repository files navigation

Requirements:

play framework >= 2.2

Howto

For production mode:

PLAY_PRODUCTION=1 play

Then clean and compile. In html there are outputs like:

<script src="http://static.example.com/javascripts/jquery-1.9.0.min.v5c6aec8.js" type="text/javascript"></script>

The "5c6aec8" is got by command:

git log -n1 --pretty=%%h public/javascripts/jquery-1.9.0.min.js

You can also change it to other commands, such as md5sum. Please modify the file AssetsPath.scala. This command only runs at compilation.

About

this is a play framework demo, presenting how to add static assets path with fingerprint.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages