Aurelia Script - Isn't it supposed to be dead simple?

As promised, https://github.com/bigopon/aurelia-script-ie11

Featured:

  • Aurelia with script tag
  • no compilation step
  • no node_modules
  • no webpack
  • dynamic/lazy loading
  • requirejs
  • all Aurelia goodies
  • ie11

image

online demo here
https://au-script-test-vicmfpdmwa.now.sh/

If you want to avoid loading scripts dynamically, via requirejs, you can use static view (example in welcome.js):

function App() {

}

App.$view = '<template>My app</template>'

If your view has some dependencies:

App.$view = {
  dependencies: [MyElement],
  template: '<template>My app</template>'
}
2 Likes