1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/examples/with-algolia-react-instantsearch/next.config.js

20 lines
434 B
JavaScript
Raw Normal View History

/* eslint-disable import/no-commonjs */
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
}
}