chore: build workers concurrently and minimize them

This commit is contained in:
Audric Ackermann 2023-05-26 10:34:24 +10:00
parent 0cbcecb508
commit 2b3e490ade
3 changed files with 3 additions and 3 deletions

View File

@ -33,6 +33,6 @@ module.exports = {
},
target: 'node',
optimization: {
minimize: false,
minimize: true,
},
};

View File

@ -38,7 +38,7 @@
"start-prod": "cross-env NODE_ENV=production NODE_APP_INSTANCE=devprod$MULTI electron .",
"build-everything": "yarn clean && yarn protobuf && yarn update-git-info && yarn sass && tsc && yarn build:workers",
"build-everything:watch": "yarn clean && yarn protobuf && yarn update-git-info && yarn sass && yarn build:workers && tsc -w",
"build:workers": "yarn worker:utils && yarn worker:libsession",
"build:workers": "yarn concurrently 'yarn worker:utils' 'yarn worker:libsession'",
"watch": "yarn clean && yarn protobuf && yarn update-git-info && concurrently 'yarn build-everything:watch'",
"protobuf": "pbjs --target static-module --wrap commonjs --out ts/protobuf/compiled.js protos/*.proto && pbts --out ts/protobuf/compiled.d.ts ts/protobuf/compiled.js --force-long",
"sass": "rimraf 'stylesheets/dist/' && webpack --config=./sass.config.js",

View File

@ -26,6 +26,6 @@ module.exports = {
},
target: 'node',
optimization: {
minimize: false,
minimize: true,
},
};