Friday, 15 June 2012

gruntjs - Add css to vendor.css with yeoman angular generator -


I have even created a new angular app using. I have chosen not to create an app with Bootstrap or Ches, because I want to use a theme.

I have already installed the bootstrap using the booker

  bower install --save bootswitch  

and related line first The same is in the bower.json file. But I do not know how to include it in a vendor's CSS file

If I include style on index.html then it is deleted after running it

  grunt  

but it keeps component-font-awesome, before I've already installed it with the Kunj.

This build (head only)

  & lt; Head & gt; & Lt; Meta charset = "UTF-8" & gt; & Lt; Title & gt; & Lt; / Title & gt; & Lt; Meta name = "description" content = "" & gt; & Lt; Meta name = "viewport" content = "width = device-width" & gt; & Lt ;! - place favicon.ico and apple-touch-icon.png in the root directory - & gt; & Lt ;! - Build: CSS (.) Styles / vendor.css - & gt; & Lt ;! - bower: css - & gt; & Lt; Link rel = "stylesheet" href = "bower_components / components-font-awesome / css / font-awesome.css" /> & Lt ;! - Endbower - & gt; & Lt ;! - endbuild - & gt; & Lt ;! - Build: CSS (.tmp) styles / main cass - & gt; & Lt; Link rel = "stylesheet" href = "genres / main case" & gt; & Lt ;! - endbuild - & gt; & Lt; / Head & gt;  

and this granular build

  & lt; Head & gt; & Lt; Meta charset = "UTF-8" & gt; & Lt; Title & gt; & Lt; / Title & gt; & Lt; Meta name = "description" content = "" & gt; & Lt; Meta name = "viewport" content = "width = device-width" & gt; & Lt ;! - place favicon.ico and apple-touch-icon.png in the root directory - & gt; & Lt ;! - Build: CSS (.) Styles / vendor.css - & gt; & Lt ;! - bower: css - & gt; & Lt; Link rel = "stylesheet" href = "bower_components / bootswatch / cerulean / bootstrap.css" /> & Lt ;! - Endbower - & gt; & Lt ;! - endbuild - & gt; & Lt ;! - Build: CSS (.tmp) styles / main cass - & gt; & Lt; Link rel = "stylesheet" href = "genres / main case" & gt; & Lt ;! - endbuild - & gt; & Lt; / Head & gt;  

My grunting file is generated by default


No comments:

Post a Comment