Better organise ReactSpa template so all 3rd-party code goes in vendor bundle

This commit is contained in:
SteveSandersonMS
2016-03-01 10:22:23 +00:00
parent c55f14caf1
commit f7bc47875f

View File

@@ -18,7 +18,7 @@ module.exports = merge({
},
entry: {
main: ['./ClientApp/boot.tsx'],
vendor: ['bootstrap', 'bootstrap/dist/css/bootstrap.css', 'style-loader', 'jquery']
vendor: ['bootstrap', 'bootstrap/dist/css/bootstrap.css', 'react', 'react-dom', 'react-router', 'style-loader', 'jquery']
},
output: {
path: path.join(__dirname, 'wwwroot', 'dist'),