We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d78c412 commit afcd422Copy full SHA for afcd422
src/store/config/index.ts
@@ -287,8 +287,9 @@ const {
287
return loadedConfig
288
},
289
useShadowDom: isPluginEnv,
290
- styleHref:
291
- isPluginEnv && isDev ? Browser.runtime.getURL('/css.css') : undefined,
+ ...(isPluginEnv && isDev
+ ? { styleHref: Browser.runtime.getURL('/css.css') }
292
+ : {}),
293
})
294
let oldConfig: typeof configStore
295
src/style/index.ts
@@ -1,8 +1,7 @@
1
-import isDev from '@root/shared/isDev'
2
import './tailwind.css'
3
import './tailwindBase.css'
4
import '@apad/rc-slider/assets/index.css'
5
6
-if (isDev) {
+if (process.env.NODE_ENV === 'development') {
7
import('@apad/setting-panel/lib/index.css')
8
}
0 commit comments