mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
76d534881f
because of this https://twitter.com/rem/status/1059563246007566336
20 lines
360 B
JavaScript
20 lines
360 B
JavaScript
module.exports = {
|
|
webpack: (config, { defaultLoaders }) => {
|
|
config.module.rules.push({
|
|
test: /\.scss$/,
|
|
use: [
|
|
defaultLoaders.babel,
|
|
{
|
|
loader: require('styled-jsx/webpack').loader,
|
|
options: {
|
|
type: 'scoped'
|
|
}
|
|
},
|
|
'sass-loader'
|
|
]
|
|
})
|
|
|
|
return config
|
|
}
|
|
}
|