Comments (3)
Thanks Jens!
When you install bower components are you using bower install --save-dev
(this will updated your bower.json
file) ?
The bower-install
task in our Gruntfile
will inject your dependencies inside the bower:css
(https://github.com/diegonetto/generator-ionic/blob/master/templates/views/index.html#L14) and bower:js
(https://github.com/diegonetto/generator-ionic/blob/master/templates/views/index.html#L40) usemin
blocks.
As for the vendor files, you need to manually add any CSS and JS files inside the usemin
build blocks but outside the bower blocks (since bower will overwrite that section).
If you look at the lines linked above you should see comments for where exactly to put your external vendor assets not managed by bower. If you properly set up your assets inside the usemin
blocks, the build
process will be able to handle your vendor files properly.
from generator-ionic.
Would be useful if there were docs showing how to use bower like this. I know for myself, this was one of the first yeoman generators I've ever used. So I was completely lost as to using bower install --save-dev
to update bower.json. I thought bower install
and manually adding the dep in index.html
was the right way, but would get destroy by grunt.
from generator-ionic.
Bower's bower.json
follows similar conventions to Node's package.json
. Bower isn't tied to Yeoman, but if this was your first exposure to Bower then great! Its awesome for managing front-end libraries as packages.
I'll include a section in the docs that mention this in order to assist newcomers.
from generator-ionic.
Related Issues (20)
- Workflow Post Development
- update_platform_config.js terminates when there is a browser platform HOT 4
- Is this project dead? HOT 6
- sudo npm install -g generator-ionic blow up HOT 13
- grunt run:android --livereload messes up with multiple networks HOT 1
- install cor dova in mac 10.10.5 HOT 2
- install cordova in mac 10.10.5 HOT 1
- grunt serve issue HOT 1
- I am installing [email protected] in my mac and I have added the camera plugin also. But I don't know how to configure xcode to Cordova and how to call xcode methods to html files. Note: Xcode version 7.2 Cordova version 6.0.0 Please help me! HOT 1
- Cordova camera plug in for ios HOT 1
- Resources not included
- Is "grunt emulate:ios --livereload" supposed to update the emulator image on changes?
- simple error in template tabs
- Yo ionic throws error HOT 1
- Request: Port to Angular 2.0 HOT 1
- Alternative: Generator-M-Ionic
- ionic upload lib folder problem
- grunt doesn't work HOT 2
- yo ionic unable to scaffold an Ionic Project! HOT 3
- ionic build android HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generator-ionic.