grunt-angular-phonegap icon indicating copy to clipboard operation
grunt-angular-phonegap copied to clipboard

Adding bower components

Open jackygrahamez opened this issue 11 years ago • 0 comments

I have had varying success on installing additional bower packages. So I don't know why they are successful in some instances. Here is an example of a bower package that is not working. I tried to install ratchet2

bower install --save ratchet2

bower.json now includes

...
    "angular-route": "1.2.15",
    "ratchet2": "*"
  },
...

then in the app/index.html I include the CSS

...
    <!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
    <!-- build:css styles/vendor.css -->
    <!-- bower:css -->
    <link rel="stylesheet" href="bower_components/ratchet2/css/ratchet.css">
    <!-- endbower -->
    <!-- endbuild -->
...

Then I include the javascript

...
    <script src="bower_components/angular-route/angular-route.js"></script>
    <script src="bower_components/ratchet2/js/ratchet.js"></script>
    <!-- endbower -->
...

I then run grunt serve

And the javascript and css references are gone.

jackygrahamez avatar May 09 '14 14:05 jackygrahamez