From 999897ba6a245b30fb2f48c3d16f86eadc3c230d Mon Sep 17 00:00:00 2001 From: hackrobot Date: Thu, 12 Sep 2024 14:33:20 +0800 Subject: [PATCH] update --- config/index.js | 8 ++++++++ package.json | 3 +++ src/pages/index/index.jsx | 2 +- yarn.lock | 18 ++++++++++++++++++ 4 files changed, 30 insertions(+), 1 deletion(-) diff --git a/config/index.js b/config/index.js index 939891f..c7aa3d2 100644 --- a/config/index.js +++ b/config/index.js @@ -42,6 +42,14 @@ const config = { }, }, h5: { + webpackChain (chain) { + chain.module + .rule('markdown') + .test(/\.md$/) + .use('raw-loader') + .loader('raw-loader') + .end(); + }, esnextModules: ["taro-ui"], publicPath: "/", staticDirectory: "static", diff --git a/package.json b/package.json index 4d94ed7..66ea511 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,9 @@ "@tarojs/shared": "3.6.20", "@tarojs/taro": "3.6.20", "animate.css": "^4.1.1", + "github-markdown-css": "^5.6.1", + "marked": "^14.1.2", + "raw-loader": "^4.0.2", "react": "^18.0.0", "react-dom": "^18.0.0", "sr-sdk-h5": "^1.3.1", diff --git a/src/pages/index/index.jsx b/src/pages/index/index.jsx index fe98ac3..b6e66c9 100644 --- a/src/pages/index/index.jsx +++ b/src/pages/index/index.jsx @@ -554,7 +554,7 @@ const Index = () => { {/* 右边 */} - 副业交流 | 沙龙 (6-8人) + 自由交流 | 沙龙 (6-8人) 深圳市龙华区 diff --git a/yarn.lock b/yarn.lock index b46a035..ba2f7c1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6245,6 +6245,11 @@ git-clone@^0.1.0: resolved "https://registry.npmmirror.com/git-clone/-/git-clone-0.1.0.tgz#0d76163778093aef7f1c30238f2a9ef3f07a2eb9" integrity sha512-zs9rlfa7HyaJAKG9o+V7C6qfMzyc+tb1IIXdUFcOBcR1U7siKy/uPdauLlrH1mc0vOgUwIv4BF+QxPiiTYz3Rw== +github-markdown-css@^5.6.1: + version "5.6.1" + resolved "https://registry.yarnpkg.com/github-markdown-css/-/github-markdown-css-5.6.1.tgz#8ca3d5c3d93d79ea429fddafea091347ab374f78" + integrity sha512-DItLFgHd+s7HQmk63YN4/TdvLeRqk1QP7pPKTTPrDTYoI5x7f/luJWSOZxesmuxBI2srHp8RDyoZd+9WF+WK8Q== + giturl@^1.0.0: version "1.0.3" resolved "https://registry.npmmirror.com/giturl/-/giturl-1.0.3.tgz#27f9d1f251d138eb2a5a56cc9dd8512b0fc0bbc6" @@ -8285,6 +8290,11 @@ markdown-table@^1.1.0: resolved "https://registry.npmmirror.com/markdown-table/-/markdown-table-1.1.3.tgz#9fcb69bcfdb8717bfd0398c6ec2d93036ef8de60" integrity sha512-1RUZVgQlpJSPWYbFSpmudq5nHY1doEIv89gBtF0s4gW1GF2XorxcA/70M5vq7rLv0a6mhOUccRsqkwhwLCIQ2Q== +marked@^14.1.2: + version "14.1.2" + resolved "https://registry.yarnpkg.com/marked/-/marked-14.1.2.tgz#3cbc26b2d6832be32b75ae0746e0968c781b6156" + integrity sha512-f3r0yqpz31VXiDB/wj9GaOB0a2PRLQl6vJmXiFrniNwjkKdvakqJRULhjFKJpxOchlCRiG5fcacoUZY5Xa6PEQ== + math-random@^1.0.1: version "1.0.4" resolved "https://registry.npmmirror.com/math-random/-/math-random-1.0.4.tgz#5dd6943c938548267016d4e34f057583080c514c" @@ -10121,6 +10131,14 @@ raw-body@2.5.1: iconv-lite "0.4.24" unpipe "1.0.0" +raw-loader@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/raw-loader/-/raw-loader-4.0.2.tgz#1aac6b7d1ad1501e66efdac1522c73e59a584eb6" + integrity sha512-ZnScIV3ag9A4wPX/ZayxL/jZH+euYb6FcUinPcgiQW0+UBtEv0O6Q3lGd3cqJ+GHH+rksEv3Pj99oxJ3u3VIKA== + dependencies: + loader-utils "^2.0.0" + schema-utils "^3.0.0" + rc-config-loader@^4.0.0: version "4.1.3" resolved "https://registry.npmmirror.com/rc-config-loader/-/rc-config-loader-4.1.3.tgz#1352986b8a2d8d96d6fd054a5bb19a60c576876a"