Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configure for GitLab Pages

New script in package.json:

"buildProd": "ng build --base-href=/project-name/ --output-path=public",

Add new .gitlab-ci.yml in root directory:

image: node:14.17.6
pages:
  cache:
    paths:
      - node_modules/
  script:
    - npm install -g @angular/[email protected]
    - npm install
    - npm run buildProd
  artifacts:
    paths:
      - public
  only:
    - main
    - pages