2016-12-27 6 views
0

現在、私はapp/styles/main.scssを持っています。私のお尻は複数の構造化ファイルに分解され、main.scssにインポートされています。私のindex.htmlでは、私は以下の持っている:CSSがビルドされていません。

<!-- build:css styles/main.css --> 
<link rel="stylesheet" href="styles/main.css"> 
<!-- endbuild --> 

私は私Gruntfile.jsで見るものから作男-のcontrib-SASSのコンパスを使用していますし、今私はさらにapp/styles/modules/_infowindow.scss

ある1つのファイルをコンパイルしたいです

私が試した次

sass: { 
    dist: { 
    files: [{ 
     expand: true, 
     cwd: '<%= yeoman.app %>/styles/modules', 
     src: ['_infowindow.scss'], 
     dest: '.tmp/cdn/' 
    }] 
    } 
}, 

ターミナル出力この:

Running "sass:dist" (sass) task 
Verifying property sass.dist exists in config...OK 
Files: app/styles/modules/_infowindow.scss -> .tmp/cdn/_infowindow.css 
Options: (none) 

しかし、.tmpのディレクトリをチェックすると、cdnのディレクトリがありません。

追加:

これは私の現在のコンパス設定です。

// Compiles Sass to CSS and generates necessary files if requested 
compass: { 
    options: { 
    sassDir: '<%= yeoman.app %>/styles', 
    cssDir: '.tmp/styles', 
    generatedImagesDir: '.tmp/images/generated', 
    imagesDir: '<%= yeoman.app %>/images', 
    javascriptsDir: '<%= yeoman.app %>/scripts', 
    fontsDir: '<%= yeoman.app %>/fonts', 
    importPath: './bower_components', 
    httpImagesPath: '/images', 
    httpGeneratedImagesPath: '/images/generated', 
    httpFontsPath: '/fonts', 
    relativeAssets: false, 
    assetCacheBuster: false, 
    raw: 'Sass::Script::Number.precision = 10\n' 
    }, 
    dist: { 
    options: { 
     generatedImagesDir: '<%= yeoman.dist %>/images/generated' 
    } 
    }, 
    server: { 
    options: { 
     sourcemap: true 
    } 
    } 
} 
+0

_infowindow.scssの代わりに_infowindow.scssの代わりにアンダースコアを削除しようとしましたか? – Nora

+0

@Nora yeahでしたが、>> >>ソースファイル "app/styles/modules/infowindow.scss"が見つかりません。 –

+0

ファイルの名前を変更しましたか?あなたはファイルの名前を変更し、不快な作業でアンダースコアなしで新しい名前を使用する必要があります – Nora

答えて

0

それは、アンダースコアを使用しないため、もはや部分的ではないと面倒なタスクにアンダースコアせずに新しい名前を使用しないようにするには、ファイルの名前を変更する必要があります。

関連する問題