c8457e3abf
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: Lee Robinson <me@leerob.io>
20 lines
409 B
JavaScript
20 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
|