mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-01-27 13:22:14 +00:00
fa29ff4c43
Refactor and added new functioms
23 lines
795 B
JavaScript
23 lines
795 B
JavaScript
const path = require('path')
|
|
const uiCore = require('./core/ui-core.js')
|
|
const config = require('./config/config.js')
|
|
const pluginsController = require('./plugins/default-plugins.js')
|
|
const generateBuildConfig = uiCore('generate_build_config')
|
|
const build = uiCore('build')
|
|
const buildDefalutPlugins = pluginsController('build')
|
|
|
|
srcConfig = {
|
|
...config.build,
|
|
options: {
|
|
...config.build.options,
|
|
outputDir: path.join(__dirname, '/builtWWW'),
|
|
sassOutputDir: path.join(__dirname, '/builtWWW/styles.bundle.css')
|
|
}
|
|
}
|
|
|
|
const { buildConfig, inlineConfigs } = generateBuildConfig(srcConfig)
|
|
|
|
build(buildConfig.options, buildConfig.outputs, buildConfig.outputOptions, buildConfig.inputOptions, inlineConfigs).then(() => {
|
|
console.log("Building and Bundling Plugins")
|
|
buildDefalutPlugins()
|
|
}) |