Skip to content

Commit

Permalink
fix(demo): fix wrong assets url on deployed demo app
Browse files Browse the repository at this point in the history
  • Loading branch information
tinesoft committed Apr 28, 2018
1 parent c64f34e commit 744931b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/templates/_gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ gulp.task('serve:demo-hmr', () => {
});

gulp.task('build:demo', () => {
return execDemoCmd(`build --preserve-symlinks --prod --aot --build-optimizer`, { cwd: `${config.demoDir}`});
return execDemoCmd(`build --preserve-symlinks --prod --aot --build-optimizer --base-href /<%=githubRepoName%>/ --deploy-url /<%=githubRepoName%>/`, { cwd: `${config.demoDir}`});
});

gulp.task('serve:demo-ssr',['build:demo'], () => {
Expand Down

0 comments on commit 744931b

Please # to comment.