Skip to content

Instantly share code, notes, and snippets.

@tomitrescak
Last active February 23, 2017 12:07
Show Gist options
  • Save tomitrescak/c54aa2f02c2058518d2fab7e61ddc301 to your computer and use it in GitHub Desktop.
Save tomitrescak/c54aa2f02c2058518d2fab7e61ddc301 to your computer and use it in GitHub Desktop.
const fsbx = require("fuse-box");
// this plugin allows us to stub module references
// please see: https://github.com/tomitrescak/proxyrequire
const StubPlugin = require('proxyrequire').FuseBoxStubPlugin(/\.ts(x)?/);
fsbx.FuseBox.init({
homeDir: "src",
tsConfig : "tsconfig.json",
log: false,
sourceMap: {
bundleReference: 'luis.js.map',
outFile: `luis/luis.js.map`
},
plugins: [
StubPlugin,
fsbx.JSONPlugin(),
fsbx.TypeScriptHelpers(),
fsbx.CSSPlugin()
],
outFile: `luis/luis.js`,
}).devServer("> [client/stories.tsx]", {
// set to true if you do not wish to run a custom express server
// if you set to tru, you will serve luis from http://localhost:5680
httpServer: false,
port: 5680
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment