Skip to content

Commit f7bc478

Browse files
Better organise ReactSpa template so all 3rd-party code goes in vendor bundle
1 parent c55f14c commit f7bc478

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/ReactSpa/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = merge({
1818
},
1919
entry: {
2020
main: ['./ClientApp/boot.tsx'],
21-
vendor: ['bootstrap', 'bootstrap/dist/css/bootstrap.css', 'style-loader', 'jquery']
21+
vendor: ['bootstrap', 'bootstrap/dist/css/bootstrap.css', 'react', 'react-dom', 'react-router', 'style-loader', 'jquery']
2222
},
2323
output: {
2424
path: path.join(__dirname, 'wwwroot', 'dist'),

0 commit comments

Comments
 (0)