- 将所有图片路径从绝对路径改为使用 process.env.PUBLIC_URL - 修复 HomePage.tsx 中所有图片引用 - 修复 CoursePage.tsx 中所有图片引用 - 确保图片在 GitHub Pages 上正确加载 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
60 lines
1.6 KiB
JSON
60 lines
1.6 KiB
JSON
{
|
|
"title": "Style Loader options",
|
|
"type": "object",
|
|
"properties": {
|
|
"injectType": {
|
|
"description": "Allows to setup how styles will be injected into DOM.",
|
|
"link": "https://github.com/webpack-contrib/style-loader#injecttype",
|
|
"enum": [
|
|
"styleTag",
|
|
"singletonStyleTag",
|
|
"autoStyleTag",
|
|
"lazyStyleTag",
|
|
"lazySingletonStyleTag",
|
|
"lazyAutoStyleTag",
|
|
"linkTag"
|
|
]
|
|
},
|
|
"attributes": {
|
|
"description": "Adds custom attributes to tag.",
|
|
"link": "https://github.com/webpack-contrib/style-loader#attributes",
|
|
"type": "object"
|
|
},
|
|
"insert": {
|
|
"description": "Inserts `<style>`/`<link>` at the given position.",
|
|
"link": "https://github.com/webpack-contrib/style-loader#insert",
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"instanceof": "Function"
|
|
}
|
|
]
|
|
},
|
|
"base": {
|
|
"description": "Sets module ID base for DLLPlugin.",
|
|
"link": "https://github.com/webpack-contrib/style-loader#base",
|
|
"type": "number"
|
|
},
|
|
"esModule": {
|
|
"description": "Use the ES modules syntax.",
|
|
"link": "https://github.com/webpack-contrib/css-loader#esmodule",
|
|
"type": "boolean"
|
|
},
|
|
"styleTagTransform": {
|
|
"description": "Transform tag and css when insert 'style' tag into the DOM",
|
|
"link": "https://github.com/webpack-contrib/style-loader#styleTagTransform",
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"instanceof": "Function"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|