Switch from React to Preact

This commit is contained in:
Drew DeVault 2017-08-24 19:11:40 -04:00
parent 0d9a1895cb
commit 9c2f898b31
2 changed files with 9 additions and 3 deletions

View File

@ -23,8 +23,6 @@
"babel-preset-react": "^6.24.1", "babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1", "babel-preset-stage-0": "^6.24.1",
"css-loader": "^0.28.4", "css-loader": "^0.28.4",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react-redux": "^5.0.5", "react-redux": "^5.0.5",
"reactstrap": "^4.8.0", "reactstrap": "^4.8.0",
"redux": "^3.7.2", "redux": "^3.7.2",
@ -45,6 +43,8 @@
"history": "^4.7.2", "history": "^4.7.2",
"isomorphic-fetch": "^2.2.1", "isomorphic-fetch": "^2.2.1",
"node-sass": "^4.5.3", "node-sass": "^4.5.3",
"preact": "^8.2.4",
"preact-compat": "^3.17.0",
"react-fontawesome": "^1.6.1", "react-fontawesome": "^1.6.1",
"react-router-dom": "^4.2.0", "react-router-dom": "^4.2.0",
"react-router-redux": "^5.0.0-alpha.6", "react-router-redux": "^5.0.0-alpha.6",

View File

@ -52,5 +52,11 @@ module.exports = {
plugins:[ plugins:[
new webpack.HotModuleReplacementPlugin(), new webpack.HotModuleReplacementPlugin(),
new webpack.EnvironmentPlugin(defines) new webpack.EnvironmentPlugin(defines)
] ],
resolve: {
alias: {
"react": "preact-compat",
"react-dom": "preact-compat"
}
}
}; };