0

grunt-contrib-compass ジョブから CSS ファイルの出力名を指定しようとしています。デフォルトの出力と index.css ファイル。

実際の結果 <%= yeoman.app %>/specialdir/themes/index.css

望ましい結果 <%= yeoman.app %>/specialdir/themes/my-theme.css

Gruntfile.js

....
compass : {
  // specialjob here
  specialjob : {
    options : {
      sassDir : '<%= yeoman.app %>/specialdir/my-theme',
      cssDir : '<%= yeoman.app %>/specialdir/themes', // should output into this folder
      relativeAssets : false,
      assetCacheBuster : false,
      raw : 'Sass::Script::Number.precision = 10\n'
    },
    dist : {
      options : {
        generatedImagesDir : '<%= yeoman.app %>/specialdir/images/generated'
      }
    },
    server : {
      options : {
        sourcemap : true
      }
    }
  },

何か案は?

4

1 に答える 1

1

my-theme.scssを取得するには、ソース ファイルの名前を に変更する必要がありますmy-theme.cssソースを見ると、これがデフォルトの動作のようです。

ハッピーコーディング!

于 2017-10-05T20:56:47.253 に答える