Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
An implementation of an AssetBundle for use in Dropwizard that allows user configuration.

Merge pull request #32 from ohhatiya/version

Update version in README.
latest commit 1bc5cbb0f0
Mr. Brad Kant ohhatiya authored
Failed to load latest commit information.
src allow custom servlet names
.gitignore Updated .gitignore
LICENSE.txt Update license Update version in README.
pom.xml branch admin -prepare for next development iteration

Configurable Assets Bundle for Dropwizard

This GitHub repository contains a drop-in replacement for Yammer's AssetsBundle class that allows for a better developer experience. Developers can use the ConfiguredAssetsBundle class anywhere they would use a AssetsBundle in their Dropwizard applications and take advantage of the ability to specify redirects for URIs to that loads them from disk instead of the classpath. This allows developers to edit browser-interpreted files and reload them without needing to recompile source.

This version is compatible with dropwizard 0.7.X.

Maven Setup


Getting Started

Implement the AssetsBundleConfiguration:

public class SampleConfiguration extends Configuration implements AssetsBundleConfiguration {
  private final AssetsConfiguration assets = new AssetsConfiguration();

  public AssetsConfiguration getAssetsConfiguration() {
    return assets;

Add the redirect bundle:

public class SampleService extends Application<SampleConfiguration> {
    public static void main(String[] args) throws Exception {
        new SampleService().run(args);

    public void initialize(Bootstrap<SampleConfiguration> bootstrap) {
        bootstrap.addBundle(new ConfiguredAssetsBundle("/assets/", "/dashboard/"));

    public void run(SampleConfiguration configuration, Environment environment) {

A sample local development config:

    /dashboard: src/main/resources/assets/
    woff: application/font-woff

You can override multiple external folders with a single configuration in a following way:

    /dashboard/assets: /some/absolute/path/with/assets/
    /dashboard/images: /some/different/absolute/path/with/images
Something went wrong with that request. Please try again.