You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/jekyll/bundling/webpack.md
+17-5Lines changed: 17 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -60,23 +60,28 @@ This configuration uses two entry points (`Content/server.js` for the server sid
60
60
61
61
Our configuration also requires installation of the "babel" loader:
62
62
63
-
```
63
+
```sh
64
64
npm install --save-dev babel-loader
65
65
```
66
66
67
-
You will also need a `.babelrc` in the root of your project:
67
+
You will also need a `.babelrc` in the root of your project, with at least preset-react and preset-env enabled. Note that the plugins and presets need to be separately installed via `npm install --save-dev`.
Once Webpack has been configured, run `webpack` to build the bundles. Once you have verified that the bundle is being created correctly, you can modify your ReactJS.NET configuration (normally `App_Start\ReactConfig.cs`) to load the newly-created bundle:
0 commit comments