JSPM

aurelia-loader-fusebox

1.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q50787F
  • License MIT

An implementation of aurelia's loader interface compatible with FuseBox

Package Exports

  • aurelia-loader-fusebox

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (aurelia-loader-fusebox) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

aurelia-loader-fusebox

Demo here

Install:

npm i -S aurelia-loader-fusebox aurelia-bootstrapper aurelia-framework
npm i -D fuse-box

Usage

import 'aurelia-loader-fusebox';
import 'aurelia-bootstrapper';

export function configure(aurelia) {
    // ...
}

FuseBox simple config example

const { FuseBox, RawPlugin, HTMLPlugin, BabelPlugin } = require('fuse-box');

let fuse = FuseBox.init({
    homeDir: './src',
    output: './dist/$name.js',
    plugins: [
        RawPlugin(['.css']),
        HTMLPlugin({ useDefault: true }),
        BabelPlugin()
    ]
});

fuse.bundle('bundle')
    .instructions(`
        > main.js
        + **/*.{js,html,css}
        + aurelia-bootstrapper
        + aurelia-pal-browser
        + aurelia-framework
        + aurelia-logging-console
        + aurelia-templating-binding
        + aurelia-history-browser
        + aurelia-templating-resources
        + aurelia-templating-router
    `);

fuse.run();