Skip to content

Commit

Permalink
Update pre-init script file names
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Mar 2, 2024
1 parent 53246c1 commit 23182df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ If you've pre-rendered your CSS styles to the page to improve the page loading a

By default, three modules of minified advanced initial scripts for different default themes are exported:

- `theme-mode/pre-init`: https://github.com/master-co/theme-mode/tree/main/packages/core/src/pre-init.min.ts
- `theme-mode/pre-init-light`: https://github.com/master-co/theme-mode/tree/main/packages/core/src/pre-init-light.min.ts
- `theme-mode/pre-init-dark`: https://github.com/master-co/theme-mode/tree/main/packages/core/src/pre-init-dark.min.ts
- `theme-mode/pre-init`: https://github.com/master-co/theme-mode/tree/main/packages/core/src/pre-init.iife.min.ts
- `theme-mode/pre-init-light`: https://github.com/master-co/theme-mode/tree/main/packages/core/src/pre-init-light.iife.min.ts
- `theme-mode/pre-init-dark`: https://github.com/master-co/theme-mode/tree/main/packages/core/src/pre-init-dark.iife.min.ts

You have to use the build tool to inject these original scripts into HTML `<head>`, taking Next.js as an example:
```tsx
Expand Down

0 comments on commit 23182df

Please sign in to comment.