Add the lite-server-proxy

This commit is contained in:
maurizio vitale 2020-09-23 15:32:41 +01:00
parent 68594cbbc0
commit 9d4da12c8c
2 changed files with 18 additions and 1 deletions

1
.gitignore vendored
View File

@ -39,7 +39,6 @@ testem.log
.env
# e2e
/e2e/*.js
/e2e/*.map
/e2e-output
/e2e-downloads

18
e2e/lite-server-proxy.js Normal file
View File

@ -0,0 +1,18 @@
let fallback = require('connect-history-api-fallback');
module.exports = {
injectChanges: false, // workaround for Angular 2 styleUrls loading
files: ['./**/*.{html,htm,css,js}'],
watchOptions: {
ignoreInitial: true,
ignored: '*'
},
ghostMode: false,
port: 4200,
open: false,
server: {
middleware: {
1: fallback({ index: '/index.html', verbose: true })
}
}
};