From ebdf14b119f46b6d8717fa74b851cebe69cc0586 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sat, 19 Oct 2019 17:24:14 +0200 Subject: [PATCH] Reduced client file size --- files.php | 53 ++++++++++++++++++++++++++++------------------------- 1 file changed, 28 insertions(+), 25 deletions(-) diff --git a/files.php b/files.php index ad6864f8..7fd4c870 100644 --- a/files.php +++ b/files.php @@ -129,22 +129,6 @@ "path" => "img/", "local-path" => "./shared/img/" ], - [ /* generated assembly files */ - "type" => "wasm", - "search-pattern" => "/.*\.(wasm)/", - "build-target" => "dev|rel", - - "path" => "wasm/", - "local-path" => "./asm/generated/" - ], - [ /* generated assembly javascript files */ - "type" => "js", - "search-pattern" => "/.*\.(js)/", - "build-target" => "dev|rel", - - "path" => "wasm/", - "local-path" => "./asm/generated/" - ], [ /* own webassembly files */ "type" => "wasm", "search-pattern" => "/.*\.(wasm)/", @@ -152,15 +136,6 @@ "path" => "wat/", "local-path" => "./shared/wat/" - ], - [ /* translations */ - "web-only" => true, /* Only required for the web client */ - "type" => "i18n", - "search-pattern" => "/.*\.(translation|json)/", - "build-target" => "dev|rel", - - "path" => "i18n/", - "local-path" => "./shared/i18n/" ] ]; @@ -226,7 +201,26 @@ ]; $APP_FILE_LIST_WEB_SOURCE = [ + [ /* generated assembly files */ + "web-only" => true, + "type" => "wasm", + "search-pattern" => "/.*\.(wasm)/", + "build-target" => "dev|rel", + + "path" => "wasm/", + "local-path" => "./asm/generated/" + ], + [ /* generated assembly javascript files */ + "web-only" => true, + "type" => "js", + "search-pattern" => "/.*\.(js)/", + "build-target" => "dev|rel", + + "path" => "wasm/", + "local-path" => "./asm/generated/" + ], [ /* web generated worker codec */ + "web-only" => true, "type" => "js", "search-pattern" => "/(WorkerCodec.js)$/", "build-target" => "dev|rel", @@ -269,6 +263,15 @@ "path" => "./", "local-path" => "./web/html/" + ], + [ /* translations */ + "web-only" => true, /* Only required for the web client */ + "type" => "i18n", + "search-pattern" => "/.*\.(translation|json)/", + "build-target" => "dev|rel", + + "path" => "i18n/", + "local-path" => "./shared/i18n/" ] ];