frontend: streamline frontend build process in prepare script
This commit is contained in:
parent
cff4e10364
commit
19fd1cc30e
@ -42,6 +42,12 @@
|
|||||||
"clearScreen": true
|
"clearScreen": true
|
||||||
},
|
},
|
||||||
"production": {
|
"production": {
|
||||||
|
"outputPath": {
|
||||||
|
"base": "../backend/public",
|
||||||
|
"browser": ""
|
||||||
|
},
|
||||||
|
"deleteOutputPath": true,
|
||||||
|
"clearScreen": true,
|
||||||
"budgets": [
|
"budgets": [
|
||||||
{
|
{
|
||||||
"type": "initial",
|
"type": "initial",
|
||||||
|
|||||||
12
prepare.sh
12
prepare.sh
@ -14,14 +14,14 @@ npm install
|
|||||||
npm run build:prod
|
npm run build:prod
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
# Build frontend
|
||||||
|
cd frontend
|
||||||
|
npm install
|
||||||
|
npm run build:prod
|
||||||
|
cd ..
|
||||||
|
|
||||||
# Build webcomponent
|
# Build webcomponent
|
||||||
cd frontend/webcomponent
|
cd frontend/webcomponent
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
# Build frontend
|
|
||||||
cd frontend
|
|
||||||
npm install
|
|
||||||
# npm run lib:build
|
|
||||||
cd ..
|
|
||||||
Loading…
x
Reference in New Issue
Block a user