code-server/fuse.js

20 lines
374 B
JavaScript
Raw Normal View History

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