UNPKG

417 BJavaScriptView Raw
1const API = require('cubic-api')
2const local = require('./config/local.js')
3const WebpackServer = require('./webpack/webpack.js')
4
5class Ui {
6 constructor (options) {
7 this.config = {
8 local: local,
9 provided: options || {}
10 }
11 }
12
13 async init () {
14 const ui = await cubic.use(new API(cubic.config.ui.api))
15 ui.webpackServer = new WebpackServer()
16 }
17}
18
19module.exports = Ui