mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
c8457e3abf
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: Lee Robinson <[email protected]>
21 lines
409 B
JavaScript
21 lines
409 B
JavaScript
const config = {
|
|
webpack: (config, { defaultLoaders }) => {
|
|
config.module.rules.push({
|
|
test: /\.css$/,
|
|
use: [
|
|
defaultLoaders.babel,
|
|
{
|
|
loader: require('styled-jsx/webpack').loader,
|
|
options: {
|
|
type: (fileName, options) => options.query.type || 'scoped',
|
|
},
|
|
},
|
|
],
|
|
})
|
|
|
|
return config
|
|
},
|
|
}
|
|
|
|
module.exports = config
|