-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflipbox-basic-build.js
More file actions
43 lines (36 loc) · 1.02 KB
/
flipbox-basic-build.js
File metadata and controls
43 lines (36 loc) · 1.02 KB
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
const apps = [
{
name: 'basic',
entry: './src/front/index.js',
// writes the generated config to a file
configOut: './build/generated/basic.js',
// loaders: ['styleloader', {'babel': true}],
loaders: {
'styleloader': true,
'babel': {},
},
presets: ['inferno', 'babel-env'],
// these are in order of least important -> most important
// think of it like a chain of Object.assigns
alias: ['moose', 'igloo', 'inferno'],
// outFile: './dist/basic.js',
// runs the dev server
run: true,
// makes it `build`
// compile: true,
// makes it build, and then execute/require&call
// the built file, with jsdom polyfilling!
// exec: true,
// resolves and loads this html file and adds to the plugins
html: './src/front/index.html',
},
]
const FlipBox = require('./flipbox')
const builder = new FlipBox({
apps,
root: global._dirname,
aliasDir: './aliases/',
defaultAppNames: ['basic'],
})
builder.fullAuto()
// module.exports = builder.mediator()