Added htaccess as asset

This commit is contained in:
Jim Martens 2021-10-06 12:10:49 +02:00
parent de46e65204
commit 7e603c9afa
2 changed files with 10 additions and 1 deletions

View File

@ -28,7 +28,8 @@
"inlineStyleLanguage": "scss",
"assets": [
"projects/speech-statistics/src/favicon.ico",
"projects/speech-statistics/src/assets"
"projects/speech-statistics/src/assets",
"projects/speech-statistics/src/.htaccess"
],
"styles": [
"./node_modules/bootstrap/dist/css/bootstrap.min.css",

View File

@ -0,0 +1,8 @@
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 ^ - [L]
# If the requested resource doesn't exist, use index.html
RewriteRule ^ /speech-statistics/index.html