- 将所有图片路径从绝对路径改为使用 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>
17 lines
1.0 KiB
TypeScript
17 lines
1.0 KiB
TypeScript
import type { PluginCreator } from 'postcss';
|
|
import type { ImportOptions, ExportOptions } from './lib/options';
|
|
export interface PluginOptions {
|
|
/** Do not emit warnings about "importFrom" and "exportTo" deprecations */
|
|
disableDeprecationNotice?: boolean;
|
|
/** Determines whether Custom Properties and properties using custom properties should be preserved in their original form. */
|
|
preserve?: boolean;
|
|
/** Specifies sources where Custom Properties can be imported from, which might be CSS, JS, and JSON files, functions, and directly passed objects. */
|
|
importFrom?: ImportOptions | Array<ImportOptions>;
|
|
/** Specifies destinations where Custom Properties can be exported to, which might be CSS, JS, and JSON files, functions, and directly passed objects. */
|
|
exportTo?: ExportOptions | Array<ExportOptions>;
|
|
/** Specifies if `importFrom` properties or `:root` properties have priority. */
|
|
overrideImportFromWithRoot?: boolean;
|
|
}
|
|
declare const creator: PluginCreator<PluginOptions>;
|
|
export default creator;
|