私はwebapp
ジェネレーターに取り組んでおり、実行後grunt
、フォントを正しく表示する機能的なアプリを取得しました。ただし、dist/
ディレクトリをチェックインすると、フォント ファイルが取得されません。
ドキュメントにはgrunt
commandbuild the application for deployment
と記載されていますが、dist/
ディレクトリは自律的ではありません。
Gruntfile.js 構成
私のcopy:dist
タスクは次のとおりです。
dist: {
files: [{
expand: true,
dot: true,
cwd: '<%= yeoman.app %>',
dest: '<%= yeoman.dist %>',
src: [
'*.{ico,png,txt}',
'.htaccess',
'images/{,*/}*.{webp,gif}',
'styles/fonts/{,*/}*.*'
]
}]
},
したがって、フォントはコピーされますが、含まれているグリフィコンはコピーされませんbower_components/sass-bootstrap/dist/fonts/
ビルドコンテンツ
これが私が走った後に得たすべてですgrunt build
./dist
├── 404.html
├── favicon.ico
├── index.html
├── robots.txt
├── scripts
│ ├── coffee.js
│ ├── plugins.js
│ ├── vendor.js
│ └── main.js
└── styles
└── main.css
質問
では、すべてのファイルとリソースを含む配置ディレクトリを作成するにはどうすればよいでしょうか?