タグで正しく動作する grunt-usemin に問題がありbuild:js
ますが、タグに到達するとbuild:css
、そのファイル内のすべてが消去されます。
公式の Yeoman ジェネレーターを使用して Web アプリをセットアップしyo webapp
、プロジェクトで動作するようにいくつかの調整を行いました。フォルダ ツリーは次のとおりです。
/
- app
|- bower_components
|- content
|- fonts
|- images
|- includes
|- scripts
|- styles
index.php
...
- dist
...
したがって、.php パーシャルを含むcontent
andを除いて、特別なことは何もありませんincludes
app/includes/html-scripts.php
次のタグを含む、正しく生成されたファイルがあります。
<!-- build:js(app) scripts/vendor/frameworks.js -->
<!-- bower:js -->
<script src="../bower_components/jquery/dist/jquery.js"></script>
<!-- endbower -->
<!-- endbuild -->
...
<!-- build:js({app,.tmp}) scripts/main.js -->
<script src="scripts/scripts.js"></script>
<!-- endbuild -->
しかし、app/includes/html-head.php
は の最後のステップ ( usemin
) で空になりgrunt build
ます。を含む:
<!-- build:css(.tmp) styles/main.css -->
<link rel="stylesheet" href="styles/fonts.css">
<link rel="stylesheet" href="styles/main.css">
<!-- endbuild -->
...
build:css({.tmp,app})
、build:css
、同じことも試しました。
これは私のものGruntfile.js
です:http://pastebin.com/9ZpjkGjY(sass:dist
代わりにを試してみましたがcompass:dist
、同じ結果です)
これが私のものpackage.json
です:http://pastebin.com/VAPwm71f
誰でも答えを手伝ってもらえますか?