mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
94c484e80d
* docs: add algolia-react-instantsearch example * fix: style
20 lines
434 B
JavaScript
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
|
|
}
|
|
}
|