mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 07:16:27 +00:00
fix: webpack issue
This commit is contained in:
@@ -29,7 +29,7 @@ function install_dependencies() {
|
|||||||
pnpm i || ERROR="install_dependencies failed"
|
pnpm i || ERROR="install_dependencies failed"
|
||||||
}
|
}
|
||||||
|
|
||||||
function build_gui(){
|
function build_gui() {
|
||||||
# build nc-gui
|
# build nc-gui
|
||||||
export NODE_OPTIONS="--max_old_space_size=16384"
|
export NODE_OPTIONS="--max_old_space_size=16384"
|
||||||
# generate static build of nc-gui
|
# generate static build of nc-gui
|
||||||
@@ -37,24 +37,23 @@ function build_gui(){
|
|||||||
pnpm run generate || ERROR="gui build failed"
|
pnpm run generate || ERROR="gui build failed"
|
||||||
}
|
}
|
||||||
|
|
||||||
function copy_gui_artifacts(){
|
function copy_gui_artifacts() {
|
||||||
# copy nc-gui build to nocodb dir
|
# copy nc-gui build to nocodb dir
|
||||||
rsync -rvzh --delete ./dist/ ${SCRIPT_DIR}/packages/nocodb/docker/nc-gui/ || ERROR="copy_gui_artifacts failed"
|
rsync -rvzh --delete ./dist/ ${SCRIPT_DIR}/packages/nocodb/docker/nc-gui/ || ERROR="copy_gui_artifacts failed"
|
||||||
}
|
}
|
||||||
|
|
||||||
function package_nocodb(){
|
function package_nocodb() {
|
||||||
#build nocodb
|
|
||||||
# build nocodb ( pack nocodb-sdk and nc-gui )
|
# build nocodb ( pack nocodb-sdk and nc-gui )
|
||||||
cd ${SCRIPT_DIR}/packages/nocodb
|
cd ${SCRIPT_DIR}/packages/nocodb
|
||||||
EE=true ./node_modules/.bin/webpack --config webpack.local.config.js || ERROR="package_nocodb failed"
|
EE=true ${SCRIPT_DIR}/node_modules/.bin/webpack --config ${SCRIPT_DIR}/packages/nocodb/webpack.local.config.js || ERROR="package_nocodb failed"
|
||||||
}
|
}
|
||||||
|
|
||||||
function build_image(){
|
function build_image() {
|
||||||
# build docker
|
# build docker
|
||||||
docker build . -f Dockerfile.local -t nocodb-local || ERROR="build_image failed"
|
docker build . -f Dockerfile.local -t nocodb-local || ERROR="build_image failed"
|
||||||
}
|
}
|
||||||
|
|
||||||
function log_message(){
|
function log_message() {
|
||||||
if [[ ${ERROR} != "" ]];
|
if [[ ${ERROR} != "" ]];
|
||||||
then
|
then
|
||||||
>&2 echo "build failed, Please check build-local-docker-image.log for more details"
|
>&2 echo "build failed, Please check build-local-docker-image.log for more details"
|
||||||
|
|||||||
Reference in New Issue
Block a user