|
|
%!s(int64=3) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| src | bd83d1f9cd chore: format code | %!s(int64=3) %!d(string=hai) anos |
| README.md | 626c4b9f9e Feat/support next (#245) | %!s(int64=3) %!d(string=hai) anos |
| package.json | 39123342dc v2.23.4 | %!s(int64=3) %!d(string=hai) anos |
| tsconfig.json | 626c4b9f9e Feat/support next (#245) | %!s(int64=3) %!d(string=hai) anos |
A Next.js extension for Semi Design.
Because Next.js does not support the global introduction of css in third-party code, but semi does. In order to support Next.js, it is necessary to exclude the css reference in the semi code at compile time.
Install @douyinfe/semi-next as a development dependency:
npm install --save-dev @douyinfe/semi-next
# or
yarn add --dev @douyinfe/semi-next
Create a next.config.js in your project.
// next.config.js
const semi = require('@douyinfe/semi-next').default({/* the extension options */});
module.exports = semi({
// your custom Next.js configuration
});
Type: Boolean
Default: true
In the compilation phase, whether to exclude css references.Used to solve the problem that Next.js does not support the global introduction of css in third-party code.See this discussion.