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
Marie-Laure Thuret 94c484e80d docs: add algolia-react-instantsearch example (#2544)
* docs: add algolia-react-instantsearch example

* fix: style
2017-07-12 20:00:47 +02:00

20 lines
434 B
JavaScript

/* 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
}
}