-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflipbox-basic.js
More file actions
37 lines (31 loc) · 893 Bytes
/
flipbox-basic.js
File metadata and controls
37 lines (31 loc) · 893 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
const apps = [
{
name: 'basic',
entry: './src/front/index.js',
configOut: './configs/dist/generated/basic.js',
loaders: ['styleloader'],
presets: ['react', 'babel-env'],
// happypack: false,
// these are in order of least important -> most important
// think of it like a chain of Object.assigns
alias: ['moose', 'igloo', 'react'],
outFile: './dist/basic.js',
// can turn this on or off to use fusebox,
// if it is compatible with what you need!
fusebox: true,
// runs the dev server
run: true,
// builds an html file, with a <div id="root"></div>
// html: '#root',
html: './src/front/index.html',
},
]
const FlipBox = require('./flipbox')
const builder = new FlipBox({
apps,
root: __dirname,
aliasDir: './aliases/',
defaultAppNames: ['basic'],
})
builder.fullAuto()
module.exports = builder.mediator()