mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 16:58:46 -03:30
Move INLINE_RUNTIME_CHUNK flag to scripts definition
We _always_ want INLINE_RUNTIME_CHUNK to be false when building the ui, even if someone happens to unexpectedly make a production build without using the top-level make targets for some reason.
This commit is contained in:
2
Makefile
2
Makefile
@@ -474,7 +474,7 @@ ui-release: ui-devel
|
|||||||
ui-devel: awx/ui_next/node_modules
|
ui-devel: awx/ui_next/node_modules
|
||||||
$(NPM_BIN) --prefix awx/ui_next run extract-strings
|
$(NPM_BIN) --prefix awx/ui_next run extract-strings
|
||||||
$(NPM_BIN) --prefix awx/ui_next run compile-strings
|
$(NPM_BIN) --prefix awx/ui_next run compile-strings
|
||||||
INLINE_RUNTIME_CHUNK=false $(NPM_BIN) --prefix awx/ui_next run build
|
$(NPM_BIN) --prefix awx/ui_next run build
|
||||||
git checkout awx/ui_next/src/locales
|
git checkout awx/ui_next/src/locales
|
||||||
mkdir -p awx/public/static/css
|
mkdir -p awx/public/static/css
|
||||||
mkdir -p awx/public/static/js
|
mkdir -p awx/public/static/js
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "PORT=3001 HTTPS=true DANGEROUSLY_DISABLE_HOST_CHECK=true react-scripts start",
|
"start": "PORT=3001 HTTPS=true DANGEROUSLY_DISABLE_HOST_CHECK=true react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "INLINE_RUNTIME_CHUNK=false react-scripts build",
|
||||||
"test": "TZ='UTC' react-scripts test --coverage --watchAll=false",
|
"test": "TZ='UTC' react-scripts test --coverage --watchAll=false",
|
||||||
"test-watch": "TZ='UTC' react-scripts test",
|
"test-watch": "TZ='UTC' react-scripts test",
|
||||||
"eject": "react-scripts eject",
|
"eject": "react-scripts eject",
|
||||||
|
|||||||
Reference in New Issue
Block a user