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