Skip to content

Commit afcd422

Browse files
committed
fix: build css bundle
1 parent d78c412 commit afcd422

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: src/store/config/index.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,9 @@ const {
287287
return loadedConfig
288288
},
289289
useShadowDom: isPluginEnv,
290-
styleHref:
291-
isPluginEnv && isDev ? Browser.runtime.getURL('/css.css') : undefined,
290+
...(isPluginEnv && isDev
291+
? { styleHref: Browser.runtime.getURL('/css.css') }
292+
: {}),
292293
})
293294
let oldConfig: typeof configStore
294295

Diff for: src/style/index.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import isDev from '@root/shared/isDev'
21
import './tailwind.css'
32
import './tailwindBase.css'
43
import '@apad/rc-slider/assets/index.css'
54

6-
if (isDev) {
5+
if (process.env.NODE_ENV === 'development') {
76
import('@apad/setting-panel/lib/index.css')
87
}

0 commit comments

Comments
 (0)