forked from vercel/next.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add warning when built-in CSS/SCSS support is disabled (vercel#10942)
- Loading branch information
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Built-in CSS Support Disabled | ||
|
||
#### Why This Error Occurred | ||
|
||
Custom CSS configuration was added in `next.config.js` which disables the built-in CSS/SCSS support to prevent conflicting configuration. | ||
|
||
A legacy plugin such as `@zeit/next-css` being added in `next.config.js` can cause this message. | ||
|
||
#### Possible Ways to Fix It | ||
|
||
If you would like to leverage the built-in CSS/SCSS support you can remove any custom CSS configuration or any plugins like `@zeit/next-css` or `@zeit/next-sass` in your `next.config.js`. | ||
|
||
If you would prefer not to leverage the built-in support you can ignore this message. | ||
|
||
### Useful Links | ||
|
||
- [Built-in CSS Support docs](https://nextjs.org/docs/basic-features/built-in-css-support) | ||
- [Custom webpack config docs](https://nextjs.org/docs/api-reference/next.config.js/custom-webpack-config) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters