Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { FuseBox, QuantumPlugin, WebIndexPlugin } = require("fuse-box");
- const fuse = FuseBox.init({
- target: "browser@es6",
- homeDir: "src",
- output: "dist/$name.js",
- sourceMaps: true,
- plugins: [
- WebIndexPlugin({
- template: "src/index.html",
- path: "./",
- }),
- process.env.NODE_ENV === "production" &&
- QuantumPlugin({
- treeshake: true,
- uglify: true,
- bakeApiIntoBundle: "bundle",
- }),
- ],
- });
- if (process.env.NODE_ENV !== "production") {
- fuse.dev();
- fuse
- .bundle("bundle")
- .instructions(">index.tsx")
- .hmr()
- .watch();
- } else {
- fuse.bundle("bundle").instructions(">index.tsx");
- }
- fuse.run();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement