We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
?inline
?no-inline
1 parent 010ccca commit ea162ceCopy full SHA for ea162ce
guide/assets.md
@@ -55,6 +55,17 @@ import workletURL from 'extra-scalloped-border/worklet.js?url'
55
CSS.paintWorklet.addModule(workletURL)
56
```
57
58
+### 明示的なインライン処理
59
+
60
+アセットは、`?inline` または `?no-inline` 接尾辞を使用することで、それぞれインラインまたは非インラインで明示的にインポートできます。
61
62
+```js twoslash
63
+import 'vite/client'
64
+// ---cut---
65
+import imgUrl1 from './img.svg?no-inline'
66
+import imgUrl2 from './img.png?inline'
67
+```
68
69
### アセットを文字列としてインポートする {#importing-asset-as-string}
70
71
アセットは末尾に `?raw` を付与することで文字列としてインポートすることができます。
0 commit comments