This repo contains demos that I used when developping the new v2.0 webpack plugins for Aurelia.
They are meant to be as simple and straightforward as possible. I made them starting from scratch, without helper libs or CLI.
The companion wiki goes into more details.
Another user put up a super minimal setup for JS-only projects (no TS, no LESS -- in fact no CSS). Check it out here: https://github.com/nathanchase/super-minimal-aurelia
-
No_splitsusesincludeAllto easily put all ofsrcinto the bundle, without requiring internalPLATFORM.moduleNameannotations. It's the easiest way to get started with Webpack on an existing project. Note that you still needmoduleNamewhen referring to external code. -
Traced_depsuses a more standard tracing approach. Webpack determines what depends on what precisely and bundles it. The main difference with 1. is that we also usemoduleNameinternally. -
Code_splitsis the same as 2. but usesmoduleName("module", "chunk")when defining routes so that area of the application are lazily loaded on demand. -
Small_ES6_buildis my test project to see how small a basic Aurelia build can get. Some restrictions apply, like using ES6 without polyfills or lack of SVG support. See the wiki page for more infos. -
DllReferencePluginis an advanced scenario that enables partial compilation and long term caching. See the wiki page for more infos. -
ASPNETis a setup that incorporate an Aurelia + Webpack front-end into an ASP.NET Core + SPA Services back-end.