File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { Aurelia } from 'aurelia-framework' ;
2
2
import 'bootstrap/dist/css/bootstrap.css' ;
3
3
import 'bootstrap' ;
4
+ declare const IS_DEV_BUILD : boolean ; // The value is supplied by Webpack during the build
4
5
5
6
export function configure ( aurelia : Aurelia ) {
6
7
aurelia . use . standardConfiguration ( ) ;
7
- if ( window . location . host . includes ( 'localhost' ) ) {
8
+
9
+ if ( IS_DEV_BUILD ) {
8
10
aurelia . use . developmentLogging ( ) ;
9
11
}
12
+
10
13
aurelia . start ( ) . then ( ( ) => aurelia . setRoot ( 'app/components/app/app' ) ) ;
11
14
}
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ module.exports = {
21
21
]
22
22
} ,
23
23
plugins : [
24
+ new webpack . DefinePlugin ( { IS_DEV_BUILD : JSON . stringify ( isDevBuild ) } ) ,
24
25
new webpack . DllReferencePlugin ( {
25
26
context : __dirname ,
26
27
manifest : require ( './wwwroot/dist/vendor-manifest.json' )
You can’t perform that action at this time.
0 commit comments