Skip to content

[Need Help] Integration of MagicUI through component failed #1333

Answered by SoonIter
zhongwencool asked this question in Q&A
Discussion options

You must be logged in to vote

You didn't import the style file
https://rspress.dev/guide/basic/custom-page#custom-styles

you can do like below in rspress.config.ts

export default defineConfig({
  globalStyles: path.join(__dirname, 'app/globals.css'),
});

or

export default defineConfig({
 builderConfig: {
    source: {
      preEntry: ['./app/globals.css'],
    }
  },
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zhongwencool
Comment options

Answer selected by zhongwencool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants