2017-01-05 18:26:01 +01:00
|
|
|
module.exports = {
|
2017-03-05 02:47:56 +01:00
|
|
|
webpack: function (config, { dev }) {
|
|
|
|
// For the development version, we'll use React.
|
|
|
|
// Because, it support react hot loading and so on.
|
|
|
|
if (dev) {
|
|
|
|
return config
|
|
|
|
}
|
|
|
|
|
2017-01-05 18:26:01 +01:00
|
|
|
config.resolve.alias = {
|
2018-12-17 17:34:32 +01:00
|
|
|
react: 'inferno-compat',
|
2017-01-05 18:26:01 +01:00
|
|
|
'react-dom': 'inferno-compat'
|
|
|
|
}
|
|
|
|
return config
|
|
|
|
}
|
|
|
|
}
|