40f4cf4866
Hiya! I was asked to add an example of how to use [Compiled](https://compiledcssinjs.com/) with Next.js, figured I might as well at it to the source 😄. Let me know if there's any changes needed.
10 lines
170 B
JavaScript
10 lines
170 B
JavaScript
module.exports = {
|
|
webpack: (config) => {
|
|
config.module.rules.push({
|
|
test: /\.js$/,
|
|
use: ['@compiled/webpack-loader'],
|
|
})
|
|
|
|
return config
|
|
},
|
|
}
|