mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
Add the lite-server-proxy
This commit is contained in:
parent
68594cbbc0
commit
9d4da12c8c
1
.gitignore
vendored
1
.gitignore
vendored
@ -39,7 +39,6 @@ testem.log
|
|||||||
.env
|
.env
|
||||||
|
|
||||||
# e2e
|
# e2e
|
||||||
/e2e/*.js
|
|
||||||
/e2e/*.map
|
/e2e/*.map
|
||||||
/e2e-output
|
/e2e-output
|
||||||
/e2e-downloads
|
/e2e-downloads
|
||||||
|
18
e2e/lite-server-proxy.js
Normal file
18
e2e/lite-server-proxy.js
Normal 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 })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
Loading…
x
Reference in New Issue
Block a user