build: add --ignore-scripts to npm install commands (#4655)
This commit is contained in:
parent
f59e6aacc4
commit
b6757c5ed3
3 changed files with 4 additions and 5 deletions
|
|
@ -54,10 +54,9 @@ endif()
|
|||
#WebUI build
|
||||
find_program(NPM npm REQUIRED)
|
||||
|
||||
set(NPM_INSTALL_FLAGS "--ignore-scripts")
|
||||
if (NPM_OFFLINE)
|
||||
set(NPM_INSTALL_FLAGS "--offline")
|
||||
else()
|
||||
set(NPM_INSTALL_FLAGS "")
|
||||
set(NPM_INSTALL_FLAGS "${NPM_INSTALL_FLAGS} --offline")
|
||||
endif()
|
||||
|
||||
add_custom_target(web-ui ALL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue