Created
January 3, 2018 10:51
-
-
Save nchanged/e2aeb8545b7c27918fab5c03c87662f5 to your computer and use it in GitHub Desktop.
new sparky
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 { 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