Include resources I don’t want bundled

This tutorial explains how you can use the 'unbundled-resources' feature in BladeRunner for resources which you do not want bundled or are not compatible with the existing bundlers.

Example: Including a JavaScript file which does not follow BladeRunner namespacing conventions

An 'unbundled-resources' folder can be created inside your aspect folder to allow you to reference any resources that you want available to your application, bladeset or blade.

This folder does not require any specific file structure like the resources folder does.

apps/

myexampleapp/

default-aspect/

resources/

html/

i18n/

xml/

src/

unbundled-resources/

mycustomfile.js

index.html

example-bladeset/

WEB-INF/

Referencing your unbundled-resource file

Now that we have the file we want to reference in our unbundled-resources folder, we can refer to it in the default-aspect index.html and include like you would with any other JavaScript file in a normal web page.

<script type="text/javascript" src="unbundled-resources/mycustomfile.js"></script>

Unbundled resources inside the war

When you create your war file for deploying your app, the unbundled-resources folder will be in the same relative location inside in the created war file