react static plugin raw loader:一个React Static插件允许将文件作为字符串导入 源码
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 =
下载地址
用户评论
资源完全没有任何内容.千万不要下载.