-
Notifications
You must be signed in to change notification settings - Fork 26.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update with-linaria example (#23332)
## Documentation / Examples * removes deprecated `@zeit/next-css`. * adds https://github.com/Mistereo/next-linaria to work with the new built-in CSS functionality. * updates Linaria to latest release (v3 will require Mistereo/next-linaria#3 ) * adds an example of using Linaria without React * gitignores `.linaria-cache`
- Loading branch information
Turadg Aleahmad
authored
Mar 26, 2021
1 parent
f28ea89
commit 4e5a359
Showing
4 changed files
with
16 additions
and
21 deletions.
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 |
---|---|---|
|
@@ -32,3 +32,6 @@ yarn-error.log* | |
|
||
# vercel | ||
.vercel | ||
|
||
# Linaria | ||
.linaria-cache/ |
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 |
---|---|---|
@@ -1,19 +1,3 @@ | ||
const withCSS = require('@zeit/next-css') | ||
const withLinaria = require('next-linaria') | ||
|
||
module.exports = withCSS({ | ||
webpack(config, options) { | ||
config.module.rules.push({ | ||
test: /\.js$/, | ||
use: [ | ||
{ | ||
loader: 'linaria/loader', | ||
options: { | ||
sourceMap: process.env.NODE_ENV !== 'production', | ||
}, | ||
}, | ||
], | ||
}) | ||
|
||
return config | ||
}, | ||
}) | ||
module.exports = withLinaria({}) |
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