aspnet5-react-webpack-boilerplate
aspnet5-react-webpack-boilerplate copied to clipboard
JQuery not working?
I cloned your repo and followed instructions. Your demo works. However, the bootstrap "navbar-toggle" button does nothing when I click on it. I got it to work by adding jquery.min.js
and bootstrap.min.js
to the _Layout.cshtml:
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - aspnet5_react_webpack_boilerplate</title>
<link rel="stylesheet" href="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.5/css/bootstrap.min.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</head>
Since the point of your demo is to demo webpack bundling, is there a better way to fix this problem?
Hello @brentarias I would say it's better to see the samples in the main nuget package repository. I upgraded them to latest rc2 version