A
A
Artem Shchurin2016-02-20 10:46:03
bower
Artem Shchurin, 2016-02-20 10:46:03

Why doesn't bower add bootstrap.css to the project?

Good afternoon!
I want to connect to the boostrap project, I make
bower install boostrap
bower.json

{
  "name": "auction",
  "dependencies": {
    "angular-route": "1.3.6",
    "angular": "1.3.6",
    "bootstrap": "^3.3.6",
    "es5-shim": "^4.0.5",
    "json3": "^3.3.2",
    "lodash": "^2.4.1",
    "bootstrap-datepicker": "^1.3.0",
    "seiyria-bootstrap-slider": "^3.1.0"
  },
  "devDependencies": {
    "angular-mocks": "1.3.6",
    "angular-scenario": "1.3.6"
  },
  "appPath": "app"
}

In index.html I get all js dependencies from bower.json, plus
<!-- build:css(.) styles/vendor.css -->
    <!-- bower:css -->
    <link rel="stylesheet" href="bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker3.css" />
    <link rel="stylesheet" href="bower_components/seiyria-bootstrap-slider/dist/css/bootstrap-slider.css" />
    <!-- endbower -->
    <!-- endbuild -->
    <!-- build:css(.tmp) styles/main.css -->
    <link rel="stylesheet" href="styles/main.css">
    <!-- endbuild -->

I registered bootstrap.css next to the datepicker and slider, when assembling bower, exclude the written connection with your hands
Tell me how to connect boostarp.css

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
MNB, 2016-02-20
@schurin

you did not specify the assembler with which you connect the bower components

E
Evgeny Fedorov, 2014-11-08
@JekFdrv

I don't see any repetition. Cattle code, it will cease to be when you begin to follow the rules of indentation.

S
Sergey Melnikov, 2014-11-08
@mlnkv

arrange hyphens and tabs, then it will be possible to talk about something

$(function() {
  var player;
  function fGetScript() {
    $.getScript("http://www.youtube.com/player_api/", function(data) {
      igor("done");
        window.onYouTubeIframeAPIReady = function() {
          igor("onYouTubeIframeAPIReady");
          $(".loadvid, .loadvid2").on("click", function() {
            var videoID = $(this).val();
            if (player === null) { 
              player = new YT.Player('player', { videoId: videoID, events: { 'onReady': onPlayerReady } }); 
            } else {
              player.loadVideoById(videoID);
            }
          });
        }
    });
  }
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question