phuse/fuse.js

23 lines
499 B
JavaScript

const { FuseBox, WebIndexPlugin } = require("fuse-box");
const fuse = FuseBox.init({
homeDir: "src",
target: "browser@es6",
output: "dist/$name.js",
plugins: [
WebIndexPlugin(),
this.isProduction &&
QuantumPlugin({
uglify: true,
treeshake: true,
bakeApiIntoBundle: "app",
}),
],
});
fuse.dev(); // launch http server
fuse
.bundle("app")
.instructions(" > index.ts")
.hmr()
.watch();
fuse.run();