File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Aurelia } from 'aurelia-framework' ;
22import 'bootstrap/dist/css/bootstrap.css' ;
33import 'bootstrap' ;
4+ declare const IS_DEV_BUILD : boolean ; // The value is supplied by Webpack during the build
45
56export function configure ( aurelia : Aurelia ) {
67 aurelia . use . standardConfiguration ( ) ;
7- if ( window . location . host . includes ( 'localhost' ) ) {
8+
9+ if ( IS_DEV_BUILD ) {
810 aurelia . use . developmentLogging ( ) ;
911 }
12+
1013 aurelia . start ( ) . then ( ( ) => aurelia . setRoot ( 'app/components/app/app' ) ) ;
1114}
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ module.exports = {
2121 ]
2222 } ,
2323 plugins : [
24+ new webpack . DefinePlugin ( { IS_DEV_BUILD : JSON . stringify ( isDevBuild ) } ) ,
2425 new webpack . DllReferencePlugin ( {
2526 context : __dirname ,
2627 manifest : require ( './wwwroot/dist/vendor-manifest.json' )
You can’t perform that action at this time.
0 commit comments