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 Jun 24, 2018
1 parent 7284c28 commit 615d415
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webpack.config.js
Expand Up @@ -17,6 +17,12 @@ module.exports = {
} }
}] }]
}, },
resolve: {
alias: {
'react': 'preact-compat',
'react-dom': 'preact-compat'
}
},
output: { output: {
path: path.join(__dirname, 'webpack_out'), path: path.join(__dirname, 'webpack_out'),
filename: 'minimalistic_react.js' filename: 'minimalistic_react.js'
Expand Down

0 comments on commit 615d415

Please sign in to comment.