Skip to content

Commit 7632c84

Browse files
committed
Pass unminified as arg
1 parent 33ab05f commit 7632c84

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

Servers/UI/OJS.Servers.Ui/ClientApp/.env.production

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ VITE_UI_SERVER_URL = 'https://alpha.judge.softuni.org'
22
VITE_ADMINISTRATION_URL = 'https://admin.alpha.judge.softuni.org'
33
VITE_PLATFORM_URL = 'https://platform.softuni.bg'
44
VITE_YOUTUBE_VIDEO_ID = 'EjQlqgTbvsE'
5-
UNMINIFIED=true

Servers/UI/OJS.Servers.Ui/ClientApp/.env.staging

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ VITE_UI_SERVER_URL = 'https://dev.alpha.judge.softuni.org'
22
VITE_ADMINISTRATION_URL = 'https://admin.dev.alpha.judge.softuni.org'
33
VITE_PLATFORM_URL = 'https://dev.platform.softuni.bg'
44
VITE_YOUTUBE_VIDEO_ID = 'EjQlqgTbvsE'
5-
UNMINIFIED=true

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@
8383
"scripts": {
8484
"start": "vite",
8585
"build": "vite build",
86-
"build:staging": "vite build --mode staging",
86+
"build:unminified": "vite build --mode production --unminified",
87+
"build:staging": "vite build --mode staging --unminified",
8788
"build:local": "vite build --mode development.local",
8889
"eject": "react-scripts eject",
8990
"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.env.UNMINIFIED === 'true';
26+
const isUnminified = process.argv.includes('--unminified');
2727

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

0 commit comments

Comments
 (0)