diff --git a/.gitignore b/.gitignore index a4d07b8c4..69df91d9a 100644 --- a/.gitignore +++ b/.gitignore @@ -39,7 +39,6 @@ testem.log .env # e2e -/e2e/*.js /e2e/*.map /e2e-output /e2e-downloads diff --git a/e2e/lite-server-proxy.js b/e2e/lite-server-proxy.js new file mode 100644 index 000000000..8e225381b --- /dev/null +++ b/e2e/lite-server-proxy.js @@ -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 }) + } + } +};