Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
Prev Previous commit
Next Next commit
clean up
  • Loading branch information
acu-kkatsma committed Oct 18, 2016
commit f24fce8781beaa8e84738aff07009f20ce178b16
1 change: 0 additions & 1 deletion templates/AureliaSpa/ClientApp/boot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ export function configure(aurelia: Aurelia) {
.developmentLogging();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you adapt this so that the developmentLogging only happens from dev builds and not from prod builds?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like I'll add a check for localhost in window location to decide whether to enable logging. Couldn't find a better suggestion not relying on a gulp task to actually edit code (that's what I've used in past). Only happens when app is loading so doesn't seem too bad.


aurelia.start().then(() => aurelia.setRoot('app/components/app/app'));
console.log('in configure');
}
3 changes: 1 addition & 2 deletions templates/AureliaSpa/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@
"npm install",
"node node_modules/webpack/bin/webpack.js --env.prod"
],
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%",
"node node_modules/webpack/bin/webpack.js --watch" ]
"postpublish": "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%"
},

"tooling": {
Expand Down