rsnext/examples/with-algolia-react-instantsearch/next.config.js
2020-05-18 15:24:37 -04:00

17 lines
398 B
JavaScript

module.exports = {
webpack: (config) => {
// Fixes npm packages that depend on `fs` module
config.node = {
fs: 'empty',
}
config.module.rules.push({
test: /\.css$/,
loader: ['style-loader', 'css-loader'],
})
if (config.resolve.alias) {
delete config.resolve.alias.react
delete config.resolve.alias['react-dom']
}
return config
},
}