Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.

An implementation of Aurelia's loader interface compatible with FuseBox

License

Notifications You must be signed in to change notification settings

arabsight/aurelia-loader-fusebox

Repository files navigation

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();

About

An implementation of Aurelia's loader interface compatible with FuseBox

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published