17 lines
398 B
JavaScript
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
|
|
},
|
|
}
|