mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-01-27 13:22:14 +00:00
fa29ff4c43
Refactor and added new functioms
24 lines
599 B
JavaScript
24 lines
599 B
JavaScript
const path = require("path")
|
|
const uiCore = require('./core/ui-core.js')
|
|
const createServer = uiCore('server')
|
|
const config = require('./config/config.js')
|
|
const pluginsController = require('./plugins/default-plugins.js')
|
|
|
|
const qortalPlugins = pluginsController('plugins')
|
|
const plugins = [...qortalPlugins]
|
|
const rootDir = process.env.NODE_ENV === 'production' ? __dirname : __dirname
|
|
|
|
const conf = {
|
|
...config,
|
|
build: {
|
|
...config.build,
|
|
options: {
|
|
...config.build.options,
|
|
outputDir: path.join(rootDir, '/builtWWW')
|
|
}
|
|
}
|
|
}
|
|
|
|
const server = createServer(conf, plugins)
|
|
|
|
server.start() |