問題タブ [stencils]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
stencils - stenciljs バンドルの使用時に画像が見つからない
次のようなsvg画像を使用するこのstenciljsコンポーネントがあります。
私のフォルダ構造は
今、私が行うと、すべてが含まれるフォルダーがstencil build
作成されます。dist
次の構造を持つ dist フォルダーをサイトにコピーします。
そして index.html 内にバンドルをロードします
/assets/icon.svg
これは期待どおりに機能しますが、存在しないアセットが読み込まれます (404)。これを修正するために何をする必要があるか提案はありますか?