Skip to content
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.

Commit

Permalink
Set src dir before .tmp to fix index.html conflicts for SystemJS
Browse files Browse the repository at this point in the history
  • Loading branch information
micaelmbagira committed Jul 18, 2016
1 parent d0bf337 commit de62a7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion generators/app/conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ module.exports = function browsersyncConf(templateVars) {
conf.server.baseDir.push(lit`conf.paths.dist`);
} else {
conf.server.baseDir.push(lit`conf.paths.tmp`);
conf.server.baseDir.push(lit`conf.paths.src`);
if (templateVars.modules === 'systemjs') {
conf.server.baseDir.unshift(lit`conf.paths.src`);
} else {
conf.server.baseDir.push(lit`conf.paths.src`);
}
if (templateVars.modules === 'inject') {
conf.server.routes = {
'/bower_components': 'bower_components'
Expand Down
2 changes: 1 addition & 1 deletion test/app/index/conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ test(`browsersyncConf when modules is 'systemjs'`, t => {
const templateVars = {modules: 'systemjs'};
const expected = {
server: {
baseDir: ['lit>>conf.paths.tmp<<lit', 'lit>>conf.paths.src<<lit'],
baseDir: ['lit>>conf.paths.src<<lit', 'lit>>conf.paths.tmp<<lit'],
routes: {
'/jspm_packages': 'jspm_packages',
'/jspm.config.js': 'jspm.config.js',
Expand Down

0 comments on commit de62a7e

Please sign in to comment.