Configure Apache to redirect 404 hits back to Angular
RewriteEngine On# If an existing asset or directory is requested go to it as it is RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d RewriteRule ^
Home » Archief July 31, 2018
RewriteEngine On# If an existing asset or directory is requested go to it as it is RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d RewriteRule ^
? 1 npm install –global imagemin-cli imagemin src/assets/images/* –out-dir=dist/angular-bvbmedia/assets/images/ To automate this process add the following lines to package.json: ? 1 “build”: “ng build –prod”
ng build –prod –base-href=https://www.bvbmedia.nl/angular/ Or define the baseHref option like this: “baseHref”: “https://www.bvbmedia.nl/angular/”