Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
heinerwalter committed Oct 31, 2023
1 parent dd05b89 commit 5df6744
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions projects/demo/scripts/changeBaseUrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ const path = require('path');
* This node script file can receive a base URL from the command line and write
* it into the file index.html. Run this node script like:
* ```
* node projects/demo/scripts/changeBaseUrl.js "/"
* node projects/demo/scripts/changeBaseUrl.js "/subdirectory/"
* ```
* Important: Don't forget the '/' at the end!
*/
let baseUrl = '/';

// Get first command line argument:

// Get baseUrl from first command line argument:
let baseUrl = '/';
if (process.argv?.length > 2) {
baseUrl = process.argv[2] || '/';
}
Expand Down

0 comments on commit 5df6744

Please sign in to comment.