-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflipbox-fusebox.js
More file actions
45 lines (35 loc) · 982 Bytes
/
flipbox-fusebox.js
File metadata and controls
45 lines (35 loc) · 982 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
const apps = [
{
name: 'fusebox',
// full access to builder context if needed
builderInstance: true,
// writes the config to a file
// can be used for reference by the builder so it doesn't build again
// and so things like babel and webpack can use this
// for aliasing and building and dev
configOut: './dist/fuseConfig.js',
// @TODO: multiple entry files with fusebox
// entry: './src/back/index.js',
entry: './src/front/index.js',
outFile: './dist/bundled.js',
presets: ['react'],
loaders: ['styleloader'],
alias: ['moose', 'igloo'],
compile: true,
run: true,
// fuseboxAlias: true,
fusebox: true,
html: './src/front/index.html',
},
]
const FlipBox = require('./flipbox')
const filters = ['fusebox']
const builder = new FlipBox({
apps,
filters,
root: __dirname,
aliasDir: './aliases/',
defaultAppNames: ['fusebox'],
})
builder.fullAuto()
module.exports = builder.mediator()