Project

General

Profile

Task #93

Updated by Radek Tomiška over 8 years ago

Now is possible to cofigure frontend only before    build in profile configuration files. After build is configuration included in app.js artifact and is not user frienly to change it.     We need to include base configuration in index.html as global javascript variables or import external javascript file with this configuration, variables, e.g.: 

 ``` 
 <body> 
    .... 
     <section id="config"> 
     <script> 
       var serverUrl = '{serverUrl}'; 
     </script> 
     </section> 
 .... 
 </body> 
 ``` 
 This THis configuration will be filled setted from profile configuration file. Property serverUrl could be overidden through gulp parameter (e.g. gulp build --serverUrl <http://server.com/api>). file 

Back