rsnext/examples/with-compiled-css/next.config.js
DOUGES 40f4cf4866
chore: adds compiled css example (#22786)
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.
2021-03-08 21:25:49 +00:00

10 lines
170 B
JavaScript

module.exports = {
webpack: (config) => {
config.module.rules.push({
test: /\.js$/,
use: ['@compiled/webpack-loader'],
})
return config
},
}