Switch from React to Preact
This commit is contained in:
parent
0d9a1895cb
commit
9c2f898b31
|
@ -23,8 +23,6 @@
|
|||
"babel-preset-react": "^6.24.1",
|
||||
"babel-preset-stage-0": "^6.24.1",
|
||||
"css-loader": "^0.28.4",
|
||||
"react": "^15.6.1",
|
||||
"react-dom": "^15.6.1",
|
||||
"react-redux": "^5.0.5",
|
||||
"reactstrap": "^4.8.0",
|
||||
"redux": "^3.7.2",
|
||||
|
@ -45,6 +43,8 @@
|
|||
"history": "^4.7.2",
|
||||
"isomorphic-fetch": "^2.2.1",
|
||||
"node-sass": "^4.5.3",
|
||||
"preact": "^8.2.4",
|
||||
"preact-compat": "^3.17.0",
|
||||
"react-fontawesome": "^1.6.1",
|
||||
"react-router-dom": "^4.2.0",
|
||||
"react-router-redux": "^5.0.0-alpha.6",
|
||||
|
|
|
@ -52,5 +52,11 @@ module.exports = {
|
|||
plugins:[
|
||||
new webpack.HotModuleReplacementPlugin(),
|
||||
new webpack.EnvironmentPlugin(defines)
|
||||
]
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
"react": "preact-compat",
|
||||
"react-dom": "preact-compat"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user