phuse/fuse.js

23 lines
499 B
JavaScript
Raw Normal View History

2020-02-19 10:27:08 +01:00
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();