Skip to content

Instantly share code, notes, and snippets.

@lordgreg
Created February 17, 2017 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lordgreg/bd79af1466139ff3ac80122feae11754 to your computer and use it in GitHub Desktop.
Save lordgreg/bd79af1466139ff3ac80122feae11754 to your computer and use it in GitHub Desktop.
const fsbx = require('fuse-box');
const fuseBox = fsbx.FuseBox.init({
cache: false,
homeDir: 'src/',
sourceMap: {
bundleReference: 'app.js.map',
outFile: './www/app.js.map',
},
outFile: './www/app.js',
plugins: [
fsbx.CSSPlugin({ write: true }),
[
fsbx.SassPlugin({ outputStyle: 'compressed' }),
fsbx.CSSPlugin()
],
fsbx.TypeScriptHelpers(),
fsbx.JSONPlugin(),
fsbx.HTMLPlugin({ useDefault: false }),
// [/node_modules.*\.css$/,
// fsbx.CSSResourcePlugin({
// dist: "www/resources",
// resolve: (f) => `/resources/${f}`
// }), fsbx.CSSPlugin()]
// [/node_modules.*\.css$/,
// fsbx.CSSResourcePlugin({
// inline: true
// }), fsbx.CSSPlugin()]
]
});
fuseBox.devServer('>app/main.ts', {
port: 4445
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment