Skip to content

Commit 0cf0ca8

Browse files
committed
Create devup-ui css issue
1 parent 8e675cf commit 0cf0ca8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/neat-ghosts-tell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@devup-ui/next-plugin': patch
3+
---
4+
5+
Create devup-ui.css after creating devup-ui.css

packages/next-plugin/src/plugin.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
exportClassMap,
66
exportFileMap,
77
exportSheet,
8+
getCss,
89
getThemeInterface,
910
registerTheme,
1011
} from '@devup-ui/wasm'
@@ -89,6 +90,8 @@ export function DevupUI(
8990
process.env.TURBOPACK_DEBUG_JS = '*'
9091
process.env.NODE_OPTIONS ??= ''
9192
process.env.NODE_OPTIONS += ' --inspect-brk'
93+
// create devup-ui.css file
94+
writeFileSync(join(cssDir, 'devup-ui.css'), getCss(null, false))
9295
} else {
9396
// build
9497
preload(excludeRegex, libPackage, singleCss, cssDir)

0 commit comments

Comments
 (0)