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
私が試した次
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
}
}
}
_infowindow.scssの代わりに_infowindow.scssの代わりにアンダースコアを削除しようとしましたか? – Nora
@Nora yeahでしたが、>> >>ソースファイル "app/styles/modules/infowindow.scss"が見つかりません。 –
ファイルの名前を変更しましたか?あなたはファイルの名前を変更し、不快な作業でアンダースコアなしで新しい名前を使用する必要があります – Nora