2019-01-11 18:58:25 +00:00
|
|
|
const {
|
|
|
|
FuseBox, SassPlugin, CSSPlugin, WebIndexPlugin,
|
|
|
|
} = require("fuse-box");
|
2019-01-11 17:50:54 +00:00
|
|
|
|
|
|
|
const fuse = FuseBox.init({
|
|
|
|
homeDir: ".",
|
|
|
|
output: "dist/$name.js",
|
|
|
|
plugins: [
|
2019-01-11 18:58:25 +00:00
|
|
|
WebIndexPlugin({ template: "packages/app/src/index.html" }),
|
|
|
|
[ SassPlugin(), CSSPlugin() ],
|
2019-01-11 17:50:54 +00:00
|
|
|
],
|
|
|
|
});
|
|
|
|
|
|
|
|
fuse.dev();
|
|
|
|
|
2019-01-11 18:58:25 +00:00
|
|
|
fuse.bundle("app").hmr().watch()
|
|
|
|
.instructions(">packages/app/src/index.ts");
|
2019-01-11 17:50:54 +00:00
|
|
|
|
|
|
|
fuse.run();
|