mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Update React samples to use prerender-via-Webpack-loader
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
ViewData["Title"] = "Home Page";
|
||||
}
|
||||
|
||||
<div id="react-app" asp-prerender-module="ReactApp/boot-server"></div>
|
||||
<div id="react-app" asp-prerender-module="ReactApp/boot-server"
|
||||
asp-prerender-webpack-config="webpack.config.js"></div>
|
||||
|
||||
@section scripts {
|
||||
<script src="/dist/vendor.bundle.js"></script>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
"domain-task": "^1.0.0",
|
||||
"history": "^2.0.0",
|
||||
"isomorphic-fetch": "^2.2.1",
|
||||
"ntypescript": "^1.201602072208.1",
|
||||
"memory-fs": "^0.3.0",
|
||||
"react": "^0.14.7",
|
||||
"react-bootstrap": "^0.28.2",
|
||||
"react-dom": "^0.14.7",
|
||||
@@ -35,6 +35,8 @@
|
||||
"react-router-redux": "^2.1.0",
|
||||
"redux": "^3.2.1",
|
||||
"redux-thunk": "^1.0.3",
|
||||
"redux-typed": "^1.0.0"
|
||||
"redux-typed": "^1.0.0",
|
||||
"require-from-string": "^1.1.0",
|
||||
"webpack-externals-plugin": "^1.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<div id="react-app" asp-prerender-module="ReactApp/boot-server.jsx"></div>
|
||||
<div id="react-app" asp-prerender-module="ReactApp/boot-server.jsx"
|
||||
asp-prerender-webpack-config="webpack.config.js"></div>
|
||||
|
||||
@section scripts {
|
||||
<script src="/dist/main.js"></script>
|
||||
|
||||
@@ -9,10 +9,13 @@
|
||||
"formsy-react-components": "^0.6.3",
|
||||
"griddle-react": "^0.3.1",
|
||||
"history": "^1.12.6",
|
||||
"memory-fs": "^0.3.0",
|
||||
"react": "^0.14.7",
|
||||
"react-dom": "^0.14.7",
|
||||
"react-router": "^2.0.0-rc5",
|
||||
"underscore": "^1.8.3"
|
||||
"require-from-string": "^1.1.0",
|
||||
"underscore": "^1.8.3",
|
||||
"webpack-externals-plugin": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-loader": "^6.2.1",
|
||||
|
||||
Reference in New Issue
Block a user