2019-03-17 00:25:20 +01:00
|
|
|
const withCSS = require('@zeit/next-css')
|
|
|
|
|
|
|
|
module.exports = withCSS({
|
2019-11-11 04:24:53 +01:00
|
|
|
webpack(config, options) {
|
2019-03-17 00:25:20 +01:00
|
|
|
config.module.rules.push({
|
|
|
|
test: /\.js$/,
|
|
|
|
use: [
|
|
|
|
{
|
|
|
|
loader: 'linaria/loader',
|
|
|
|
options: {
|
2019-11-11 04:24:53 +01:00
|
|
|
sourceMap: process.env.NODE_ENV !== 'production',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2019-03-17 00:25:20 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
return config
|
2019-11-11 04:24:53 +01:00
|
|
|
},
|
2019-03-17 00:25:20 +01:00
|
|
|
})
|