Skip to content

Commit

Permalink
Added Webpack configuration to substitute Preact for React.
Browse files Browse the repository at this point in the history
  • Loading branch information
maratbn committed Aug 5, 2018
1 parent 8205f48 commit c9c8bdc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webpack.config.js
Expand Up @@ -19,6 +19,12 @@ module.exports = {
}]
}]
},
resolve: {
alias: {
'react': 'preact-compat',
'react-dom': 'preact-compat'
}
},
output: {
path: path.join(__dirname, 'webpack_out'),
filename: 'minimalistic_react.js'
Expand Down

0 comments on commit c9c8bdc

Please sign in to comment.