2016-12-27 19:58:10 +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
|
|
|
|
}
|
|
|
|
|
2016-12-27 19:58:10 +01:00
|
|
|
config.resolve.alias = {
|
2017-01-13 15:40:07 +01:00
|
|
|
'react': 'preact-compat/dist/preact-compat',
|
|
|
|
'react-dom': 'preact-compat/dist/preact-compat'
|
2016-12-27 19:58:10 +01:00
|
|
|
}
|
2017-03-05 02:47:56 +01:00
|
|
|
|
2016-12-27 19:58:10 +01:00
|
|
|
return config
|
|
|
|
}
|
|
|
|
}
|