Skip to content

Instantly share code, notes, and snippets.

@nchanged
Created January 3, 2018 10:51
Show Gist options
  • Save nchanged/e2aeb8545b7c27918fab5c03c87662f5 to your computer and use it in GitHub Desktop.
Save nchanged/e2aeb8545b7c27918fab5c03c87662f5 to your computer and use it in GitHub Desktop.
new sparky
const { src, context, task } = require("fuse-box/sparky");
context(class {
getConfig(){
return FuseBox.init({
homeDir : "src",
output : "dist/$name.js",
hash : this.production
});
}
});
task("default", context => {
context.production = true;
const fuse = context.getConfig();
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment