2016-07-15 14 views
0

私は最初の角度のアプリケーションを作成しようとしています。私はヨーマンと角ジェネレーターを使用しています。アプリの実行罰金「うなり声は、サーブ」が、私は「うなり声のビルド」を実行したときにプロセスはエラーで停止 -gruntビルドで「壊れた@import」エラーが発生しましたか?

Running "cssmin:generated" (cssmin) task 
Warning: Broken @import declaration of "" Use --force to continue. 

Aborted due to warnings. 

私は、このエラーの原因が何であるかわかりません。私はどこにでも見えましたが、解決策を見つけることができませんでした。ここで は、CSSのリンクです -

<!-- build:css(.) styles/vendor.css --> 
    <!-- bower:css --> 
    <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" /> 
    <link rel="stylesheet" href="bower_components/animate.css/animate.css" /> 
    <!-- endbower --> 
    <!-- endbuild --> 
    <!-- build:css(.tmp) styles/main.css --> 
    <link rel="stylesheet" href="styles/main.css"> 
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> 
    <link href="https://fonts.googleapis.com/css?family=Bungee|Carrois+Gothic+SC|Oswald" rel="stylesheet"> 
    <base href="/"> 
    <!-- endbuild --> 
+0

問題の原因となるファイルの中に '@ import'文があります。しかし、あなたはそれを私たちと共有しないので、私たちはあなたを助けることができません。私はofftopicとして閉じるためにこれを投票します>なぜこのコードは動作しないのですか? –

+0

私は自分のコードのどこにでも@importを書いていないと確信しています。コードを共有するのに問題はありませんが、かなり多くありますので、ここに表示する部分が分かりません。 – doctorsherlock

答えて

0

私はちょうどリンクタグの位置を変更しなければならなかった、エラーを検出しました。 それがあるべき -

<!-- build:css(.) styles/vendor.css --> 
    <!-- bower:css --> 
    <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" /> 
    <link rel="stylesheet" href="bower_components/animate.css/animate.css" /> 
    <!-- endbower --> 
    <!-- endbuild --> 
    <!-- build:css(.tmp) styles/main.css --> 
    <link rel="stylesheet" href="styles/main.css"> 
    <!-- endbuild --> 
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> 
    <link href="https://fonts.googleapis.com/css?family=Bungee|Carrois+Gothic+SC|Oswald" rel="stylesheet"> 
    <base href="/"> 

grunt build実行罰金

。だからmain.cssファイルだけを <!-- build:css(.tmp) styles/main.css --><!-- endbuild -->の間に入れてください

関連する問題