Skip to content

Commit

Permalink
Merge pull request aurelia#716 from haynesjm42/feat/bundle/append
Browse files Browse the repository at this point in the history
docs(the-aurelia-cli): add description of append feature
  • Loading branch information
EisenbergEffect authored Feb 27, 2017
2 parents 8393ad6 + b5944fd commit 029bb9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/article/en-US/the-aurelia-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,10 @@ Sometimes you can't get a library to work with the module loading system. That's
</source-code>
</code-listing>

### A Very Stubborn Legacy Library With Plugins

Some legacy libraries may support plugins which you also want included in your bundle. In some cases these plugins depend on a global object defined by the main library, so it is important that the plugins exist later in the bundle than the main library scripts. These plugins can go in the `append` section, which works exactly the same as the `prepend` section but the scripts are appended to the end of the bundle, after all other items. Like the `prepend` section all items are relative to the project folder, not the `src`.

### A note on NPM's scoped packages

The CLI treats [scoped packages](https://docs.npmjs.com/misc/scope) in the same way as unscoped ones, you just need to remember that the scope is always part of its name.
Expand Down

0 comments on commit 029bb9e

Please sign in to comment.