Last active
February 23, 2017 12:07
-
-
Save tomitrescak/c54aa2f02c2058518d2fab7e61ddc301 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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