chore: support raw-loader

This commit is contained in:
Li Xin 2025-04-22 13:52:56 +08:00
parent e586f5b31d
commit dff003f743
4 changed files with 591 additions and 0 deletions

View File

@ -15,6 +15,16 @@ const config = {
destination: "http://localhost:8000/api/podcast/:path*",
},
],
experimental: {
turbo: {
rules: {
"*.md": {
loaders: ["raw-loader"],
as: "*.js",
},
},
},
},
};
export default config;

View File

@ -66,6 +66,7 @@
"postcss": "^8.5.3",
"prettier": "^3.5.3",
"prettier-plugin-tailwindcss": "^0.6.11",
"raw-loader": "^4.0.2",
"tailwindcss": "^4.0.15",
"typescript": "^5.8.2",
"typescript-eslint": "^8.27.0"

576
web/pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

4
web/src/typings/md.d.ts vendored Normal file
View File

@ -0,0 +1,4 @@
declare module "*.md" {
const content: string;
export default content;
}