Skip to content
April 10, 2013 / edeustace

Assets Loading plugin/library for Play 2.0.4

On our current project, we were looking for a way of abstracting out how we load our javascript from our html templates. Our wish was that depending on the environment that the application runs in, it’ll render the scripts in different ways.

For Example:

– In dev mode: load all scripts as individual files, not gzipped and not minified.

– in production mode: load all scripts as one single, gzipped and minified file.

This is the plugin we came up with

https://github.com/edeustace/assets-loader

its at an early stage and has only been tested with Play 2.0.4, but thought I’d share.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: