「Javascript/nuxtjs/公開ファイル設定」の版間の差分
提供: 初心者エンジニアの簡易メモ
(ページの作成:「==画像設定== assetsの下に画像を設定 vueでの記載方法 <pre> <template> <img src="~/assets/your_image.png" /> </template> </pre> 参考:https://ja.nu...」) |
(相違点なし)
|
2021年6月7日 (月) 17:34時点における版
画像設定
assetsの下に画像を設定
vueでの記載方法
<template> <img src="~/assets/your_image.png" /> </template>
参考:https://ja.nuxtjs.org/docs/2.x/directory-structure/assets/
画像設定(その2)
staticの下に画像を設定
vueでの記載方法
<template> <img src="/image/hoge.png"> </template>
静的に処理したい場合はassetsではなく、staticに置くのかも。