rsnext/examples/with-astroturf/next.config.js
Danil Shashkov 2f325e0f69 Add example with astroturf (Zero runtime CSS-in-JS) (#6821)
* Add example with astroturf (Zero runtime CSS-in-JS)
2019-03-28 15:41:05 -05:00

13 lines
230 B
JavaScript

const withCSS = require('@zeit/next-css')
module.exports = withCSS({
cssModules: true,
webpack: config => {
config.module.rules.push({
test: /\.js$/,
use: ['astroturf/loader']
})
return config
}
})