Skip to content

Commit fd3a832

Browse files
committed
2 parents 26f3e9f + 04a603d commit fd3a832

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

Servers/UI/OJS.Servers.Ui/ClientApp/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"@types/uuid": "^8.3.1",
5959
"@typescript-eslint/eslint-plugin": "^7.0.2",
6060
"@typescript-eslint/parser": "^7.0.2",
61+
"cross-env": "^7.0.3",
6162
"eslint": "^8.56.0",
6263
"eslint-config-airbnb": "^19.0.4",
6364
"eslint-import-resolver-typescript": "^3.6.1",
@@ -83,8 +84,8 @@
8384
"scripts": {
8485
"start": "vite",
8586
"build": "vite build",
86-
"build:unminified": "vite build --mode production --unminified",
87-
"build:staging": "vite build --mode staging --unminified",
87+
"build:unminified": "cross-env UNMINIFIED=true vite build",
88+
"build:staging": "cross-env UNMINIFIED=true vite build --mode staging",
8889
"build:local": "vite build --mode development.local",
8990
"eject": "react-scripts eject",
9091
"lint:eslint": "./node_modules/.bin/eslint ./src --ext .tsx --ext .ts",

Servers/UI/OJS.Servers.Ui/ClientApp/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const forwardToAdmin = () => {
2323
}
2424

2525
export default defineConfig(({ mode }) => {
26-
const isUnminified = process.argv.includes('--unminified');
26+
const isUnminified = process.env.UNMINIFIED === 'true';
2727

2828
return ({
2929
appType: 'mpa', // Multi Page Application

Servers/UI/OJS.Servers.Ui/ClientApp/yarn.lock

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4576,13 +4576,29 @@ create-emotion@^10.0.14, create-emotion@^10.0.27:
45764576
"@emotion/sheet" "0.9.4"
45774577
"@emotion/utils" "0.11.3"
45784578

4579+
cross-env@^7.0.3:
4580+
version "7.0.3"
4581+
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf"
4582+
integrity sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==
4583+
dependencies:
4584+
cross-spawn "^7.0.1"
4585+
45794586
cross-fetch@^3.1.5:
45804587
version "3.1.8"
45814588
resolved "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.8.tgz"
45824589
integrity sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==
45834590
dependencies:
45844591
node-fetch "^2.6.12"
45854592

4593+
cross-spawn@^7.0.1:
4594+
version "7.0.6"
4595+
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f"
4596+
integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==
4597+
dependencies:
4598+
path-key "^3.1.0"
4599+
shebang-command "^2.0.0"
4600+
which "^2.0.1"
4601+
45864602
cross-spawn@^7.0.2, cross-spawn@^7.0.3:
45874603
version "7.0.3"
45884604
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz"
@@ -10276,7 +10292,7 @@ react-lite-youtube-embed@^2.4.0:
1027610292
resolved "https://registry.npmjs.org/react-lite-youtube-embed/-/react-lite-youtube-embed-2.4.0.tgz"
1027710293
integrity sha512-Xo6cM1zPlROvvM97JkqQIoXstlQDaC4+DawmM7BB7Hh1cXrkBHEGq1iJlQxBTUWAUklmpcC7ph7qg7CztXtABQ==
1027810294

10279-
react-markdown@8.0.7:
10295+
react-markdown@^8.0.7:
1028010296
version "8.0.7"
1028110297
resolved "https://registry.yarnpkg.com/react-markdown/-/react-markdown-8.0.7.tgz#c8dbd1b9ba5f1c5e7e5f2a44de465a3caafdf89b"
1028210298
integrity sha512-bvWbzG4MtOU62XqBx3Xx+zB2raaFFsq4mYiAzfjXJMEz2sixgeAfraA3tvzULF02ZdOMUOKTBFFaZJDDrq+BJQ==

0 commit comments

Comments
 (0)