Skip to main content
deleted 9 characters in body; edited tags
Source Link
Charles
  • 51.5k
  • 13
  • 107
  • 146

In my index.html file, I've added that:

 <!-- bower:js --> <!-- endbower --> 

in order to let install-bower grunt task to put all my Bower dependencies. In my Gruntfile.js, I have the following task:

 'bower-install': { dist: { html: 'cwf/index.html' } } 

At the end, in my index.html, I get something like:

 <!-- bower:js --> <script src="bower_components/jquery/jquery.js"></script> <script src="bower_components/angular/angular.js"></script> ... <!-- endbower --> 

However, I want to configure the task to prepend ../ before the bower_components, so to get that:

 <!-- bower:js --> <script src="../bower_components/jquery/jquery.js"></script> <script src="../bower_components/angular/angular.js"></script> ... <!-- endbower --> 

How can I configure the task for that purpose?

Thanks.

In my index.html file, I've added that:

 <!-- bower:js --> <!-- endbower --> 

in order to let install-bower grunt task to put all my Bower dependencies. In my Gruntfile.js, I have the following task:

 'bower-install': { dist: { html: 'cwf/index.html' } } 

At the end, in my index.html, I get something like:

 <!-- bower:js --> <script src="bower_components/jquery/jquery.js"></script> <script src="bower_components/angular/angular.js"></script> ... <!-- endbower --> 

However, I want to configure the task to prepend ../ before the bower_components, so to get that:

 <!-- bower:js --> <script src="../bower_components/jquery/jquery.js"></script> <script src="../bower_components/angular/angular.js"></script> ... <!-- endbower --> 

How can I configure the task for that purpose?

Thanks.

In my index.html file, I've added that:

 <!-- bower:js --> <!-- endbower --> 

in order to let install-bower grunt task to put all my Bower dependencies. In my Gruntfile.js, I have the following task:

 'bower-install': { dist: { html: 'cwf/index.html' } } 

At the end, in my index.html, I get something like:

 <!-- bower:js --> <script src="bower_components/jquery/jquery.js"></script> <script src="bower_components/angular/angular.js"></script> ... <!-- endbower --> 

However, I want to configure the task to prepend ../ before the bower_components, so to get that:

 <!-- bower:js --> <script src="../bower_components/jquery/jquery.js"></script> <script src="../bower_components/angular/angular.js"></script> ... <!-- endbower --> 

How can I configure the task for that purpose?

Source Link
Romain Linsolas
  • 82.1k
  • 52
  • 207
  • 277

How to specify the target directory for bower-install?

In my index.html file, I've added that:

 <!-- bower:js --> <!-- endbower --> 

in order to let install-bower grunt task to put all my Bower dependencies. In my Gruntfile.js, I have the following task:

 'bower-install': { dist: { html: 'cwf/index.html' } } 

At the end, in my index.html, I get something like:

 <!-- bower:js --> <script src="bower_components/jquery/jquery.js"></script> <script src="bower_components/angular/angular.js"></script> ... <!-- endbower --> 

However, I want to configure the task to prepend ../ before the bower_components, so to get that:

 <!-- bower:js --> <script src="../bower_components/jquery/jquery.js"></script> <script src="../bower_components/angular/angular.js"></script> ... <!-- endbower --> 

How can I configure the task for that purpose?

Thanks.