Skip to content

Commit

Permalink
Added removal of static dir
Browse files Browse the repository at this point in the history
  • Loading branch information
5cript committed Nov 23, 2024
1 parent d4582a5 commit 937a079
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/frontend/emscripten.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function(nui_prepare_emscripten_target)
add_custom_command(
OUTPUT "${CMAKE_BINARY_DIR}/bin/index.html"
COMMAND ${CMAKE_COMMAND} -E copy_directory "${NUI_SOURCE_DIRECTORY}/nui/js" "${NUI_MODULE_BUILD_DIR}/nui-js"
COMMAND ${CMAKE_COMMAND} -E rm -rf "${CMAKE_BINARY_DIR}/static"
COMMAND ${CMAKE_COMMAND} -E copy_directory ${NUI_PREPARE_EMSCRIPTEN_TARGET_ARGS_STATIC} "${CMAKE_BINARY_DIR}/static"
${INLINER_COMMAND}
COMMAND "${CMAKE_BINARY_DIR}/node_modules/.bin/parcel" build --dist-dir "${CMAKE_BINARY_DIR}/bin" ${NUI_PREPARE_EMSCRIPTEN_TARGET_ARGS_PARCEL_ARGS}
Expand Down

0 comments on commit 937a079

Please sign in to comment.