title: Replace variables with gulp
body: <p>Is it good approach to replace variables with gulp-replace in <code>src</code> directory ?</p>
  
  <p>I have <code>src</code> and <code>build</code> directories. Within <code>src</code> I am writing es6 JS code which should be compiled and minified into <code>build</code> directory.</p>
  
  <p>And in <code>src</code> directory I have angular config file.</p>
  
  <pre><code>$routeProvider
      .when('/', {
          controller: 'HomeController',
          controllerAs: 'HomeCtrl',
          templateUrl: '/BUILD_DIR/app/partials/home.html'
      })
  </code></pre>
  
  <p>During the building process gulp-replace will replace BUILD_DIR var in all files with appropriate directory name, which is <code>build</code> in our case.</p>
  
  <p>Is it okay to write such variables in your uncompiled js code ? If not, how to do with it in another way ?</p>