Skip to content

Commit

Permalink
🐛 (defaultTheme) resolve admin runtime css
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahul committed May 22, 2021
1 parent 309fd52 commit 7cf6682
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/defaultTheme/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ export default <Module>function themeSetupModule() {
join(options.themeDir)
)

// Resolve admin runtime path
const adminPath = join(__dirname, '../admin')

windiOptions.scanOptions.include.push(
join(adminPath, '/**/*.{html,vue,md,mdx,pug,jsx,tsx,svelte}'),
join(__dirname, '/**/*.{html,vue,md,mdx,pug,jsx,tsx,svelte}'),
join(options.rootDir, '/node_modules/docus/dist/**/*.{html,vue,md,mdx,pug,jsx,tsx,svelte}'),
join(options.themeDir, '/**/*.{html,vue,md,mdx,pug,jsx,tsx,svelte}')
Expand Down

1 comment on commit 7cf6682

@vercel
Copy link

@vercel vercel bot commented on 7cf6682 May 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.