1. 首页
  2. 数据库
  3. 其它
  4. react static plugin raw loader:一个React Static插件允许将文件作为字符串导入 源码

react static plugin raw loader:一个React Static插件允许将文件作为字符串导入 源码

上传者: 2021-04-08 20:01:04上传 ZIP文件 2.83KB 热度 20次
react-static-plugin-raw-loader 一个插件,允许将文件作为字符串导入。 安装 $ npm install react-static-plugin-raw-loader # or $ yarn add react-static-plugin-raw-loader 使用 编辑您的static.config.js ,像这样添加此插件: export default { // ... plugins : [ // ... 'react-static-plugin-raw-loader' ] // ... } ; 现在,您可以从*.txt文件或*.md文件将原始文本作为字符串导入。 import React from 'react' import textValue from 'something.txt' const App =
下载地址
用户评论
码姐姐匿名网友 2025-04-13 07:58:50

资源完全没有任何内容.千万不要下载.