File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/slidev/node/plugins Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import WindiCSS, { defaultConfigureFiles } from 'vite-plugin-windicss'
3
3
import { ResolvedSlidevOptions , SlidevPluginOptions } from '..'
4
4
5
5
export function createWindiCSSPlugin (
6
- { themeRoots, clientRoot } : ResolvedSlidevOptions ,
6
+ { themeRoots, clientRoot, userRoot } : ResolvedSlidevOptions ,
7
7
{ windicss : windiOptions } : SlidevPluginOptions ,
8
8
) {
9
9
return WindiCSS (
@@ -13,6 +13,9 @@ export function createWindiCSSPlugin(
13
13
...themeRoots . map ( i => `${ i } /windi.config.ts` ) ,
14
14
resolve ( clientRoot , 'windi.config.ts' ) ,
15
15
] ,
16
+ onOptionsResolved ( config ) {
17
+ config . scanOptions . include . push ( `!${ resolve ( userRoot , 'node_modules' ) } ` )
18
+ } ,
16
19
...windiOptions ,
17
20
} ,
18
21
{
You can’t perform that action at this time.
0 commit comments