Skip to content

Commit fcf35f6

Browse files
gazabdustinsoftware
authored andcommitted
Update expose-loader syntax for latest Webpack (#493)
1 parent 5dfcd37 commit fcf35f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/jekyll/guides/webpack.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = {
2222

2323
// All JavaScript in here will be loaded server-side
2424
// Expose components globally so ReactJS.NET can use them
25-
var Components = require('expose?Components!./components');
25+
var Components = require('expose-loader?Components!./components');
2626
```
2727

2828
The next step is to modify the `webpack.config.js` so that it creates a bundle from `Content/server.js`. A config similar to the following could work as a good starting point:

0 commit comments

Comments
 (0)