/var/www/html/magento2/vendor/magento/module-checkout/view/frontend/web/template/minicart/content.htmlカスタムテーマのファイルをオーバーライドする方法 
/var/www/html/magento2/vendor/magento/module-checkout/view/frontend/web/template/minicart/content.htmlカスタムテーマのファイルをオーバーライドする方法 
回答:
まず、web / templateファイルをmagentoテーマファイル(私の場合はcontent.html)に上書きする必要があります
Magento_Checkout/web/template/minicart/content.htmlcontent.htmlファイルの変更後、コマンドを使用して静的ファイルをデプロイする必要がありますphp bin/magento setup:static-content:deploy
または
content.html(このファイルのコンテンツを変更する必要があります)ファイルを削除してpub/static/frontend/Magento/buytea/en_US/Magento_Checkout/template/minicart、再度ページをリロードする必要があります。
変更が適用されます。
magento2  |_ app    |_ design 	  |_ frontend 		|_ Magento 			|_luma 			  |_Magento_Theme 			    |_templates 				  |_root.phtml 				composer.json 				registration.php 				theme.xml
                    別の方法があります。RequireJSを介してHTMLテンプレートをオーバーライドできることを知っておく必要があります。カスタムテーマを作成する必要はありません。カスタムモジュールで、以下を作成しますrequirejs-config.js。
app / code / {Vendor} / {Module_Name} /view/frontend/requirejs-config.js
var config = {
    map: {
        '*': {
            'Magento_Checkout/template/minicart/content.html':
                'Vendor_ModuleName/template/minicart/content.html'
        }
    }
};content.htmlこの方法をオーバーライドすると、なぜ空白になるのですか?ミニカート。
                    Vendor_ModuleName/template/minicart/content.htmlはにありpub/staticますか?
                    requirejs-config.jsavailbaleある
                    このフォルダーをテーマに追加することで、これをオーバーライドできます。
Magento_Checkout/web/template/minicartこのフォルダーで、content.htmlファイルを作成できます。このファイルに変更を加えたら、ブラウザのキャッシュをフラッシュして変更を確認してください。
Khoa TruongDinhの回答は本当に役に立ちましたが、詳細が足りないため、完全な例を次に示します。
minicartの実際の例として、htmlテンプレートを以下にコピーします。
[theme_path]/Magento_Theme/web/template/minicart/content.htmlテーマではrequirejs-config.js =>
var config = {
    "map": {
        "*": {
            'Magento_Checkout/template/minicart/content.html': 'Magento_Theme/template/minicart/content.html'
        }
    }
};コアバグも参照してください:https : //github.com/magento/magento2/issues/5832
ミニカートのコンテンツを変更するためのファイルを開く:
/app/design/frontend/your_theme/Theme/Magento_Checkout/web/template/minicart/content.htmlminicart製品の内容を変更するためのファイルを開く:
/app/design/frontend/Eglo/Theme/Magento_Checkout/web/template/minicart/item/default.html変更後bin/magento setup:static-content:deploy、それを使用してテーマをデプロイする必要があります。
変更が入力されていない場合は、ランタイムの変更を表示するために、以下のディレクトリでテンプレートを変更します。
/pub/static/frontend/Your_theme/Theme/en_US/Magento_Checkout/template/minicart