Skip to content

静态资源处理

将资源引入为字符串

资源可以使用 ?raw 后缀声明作为字符串引入。

js
import shaderString from './README.md?raw'

基于 MIT 许可发布