-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfuse-box.js
28 lines (26 loc) · 851 Bytes
/
fuse-box.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
var fb = require('fuse-box')
var FuseBox = fb.FuseBox
var fuse = FuseBox.init({
homeDir: "src",
outFile: "bundle.js",
cache : true,
plugins: [
fb.CSSPlugin(),
fb.HTMLPlugin({ useDefault: true }),
fb.BabelPlugin({
test: /\.js$/, // test is optional
config: {
sourceMaps: true,
presets: ["es2015-loose", "stage-1"],
plugins: [
"syntax-flow",
"transform-decorators-legacy",
"transform-flow-strip-types",
"syntax-async-functions",
"transform-async-to-generator"
]
}
})
]
})
fuse.devServer("> main.js + **/*.js + **/*.html + aurelia-framework + aurelia-logging-console + aurelia-templating-binding + aurelia-templating-resources + aurelia-event-aggregator + aurelia-history-browser + aurelia-templating-router + babel-polyfill")