rsnext/examples/with-external-styled-jsx-sass/next.config.js

19 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
}
}