mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-12-26 11:05:01 +00:00
build script: simplify client-watch task
This commit is contained in:
parent
782b849a53
commit
b5c4d7d2fc
1 changed files with 1 additions and 5 deletions
6
build
6
build
|
@ -137,11 +137,7 @@ function task_dev-server-stop {
|
|||
function task_client {
|
||||
task_begin "Packaging Javascript";
|
||||
node_modules/rollup/bin/rollup --sourcemap --config rollup.config.js;
|
||||
exit_code=$?;
|
||||
task_end ${exit_code};
|
||||
if [[ "${exit_code}" -ne 0 ]]; then
|
||||
exit ${exit_code};
|
||||
fi
|
||||
task_end $? "Error: rollup packing failed!";
|
||||
|
||||
task_begin "Copying html";
|
||||
cp client_src/index.html "${build_output_folder}";
|
||||
|
|
Loading…
Reference in a new issue