Skip to content
Snippets Groups Projects
Commit 6d6296e5 authored by Nathan Walker's avatar Nathan Walker
Browse files

chore: merge latest upstream parent

parents 0870871f 98139ca6
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,9 @@ import { platformBrowser } from '@angular/platform-browser';
import { WebModuleNgFactory } from './web.module.ngfactory';
enableProdMode();
if (String('<%= ENV %>') === 'prod' || String('<%= TARGET_DESKTOP_BUILD %>') === 'true') {
enableProdMode();
}
platformBrowser().bootstrapModuleFactory(WebModuleNgFactory);
......
......@@ -490,10 +490,26 @@ export class SeedConfig {
*/
'browser-sync': {
middleware: [require('connect-history-api-fallback')({
index: `${this.APP_BASE}index.html`
// parent angular2-seed uses the following however they don't work here
// rewrites: this.DEV_REWRITE_RULES,
// disableDotRule: true
index: `${this.APP_BASE}index.html`,
// rewrites: [
// {
// from: /^\/node_modules\/.*$/,
// to: (context:any) => context.parsedUrl.pathname
// },
// {
// from: new RegExp(`^${this.APP_BASE}${this.APP_SRC}$`),
// to: (context:any) => context.parsedUrl.pathname
// },
// {
// from: /^\/assets\/.*$/,
// to: (context:any) => context.parsedUrl.pathname
// },
// {
// from: /^\/css\/.*$/,
// to: (context:any) => context.parsedUrl.pathname
// }
// ],
// disableDotRule: true
})],
port: this.PORT,
startPath: this.APP_BASE,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment